you have to first mock type() and then mock post(). not sure about the api of builder and easy-mock, the possible code might be:
expect(builder.type(MediaType.APPLICATION_JSON)).andReturn(mockType)
expect(mockType.post(ClientResponse.class, credentials)).andReturn(clientResponse)