@Test(groups = "unit", testName = "DatacenterApiExpectTest")
public class DatacenterApiExpectTest extends BaseJoyentCloudApiExpectTest {
public void testGetDatacentersWhenResponseIs2xx() {
JoyentCloudApi apiWhenDatacentersExists = requestSendsResponse(getDatacenters, getDatacentersResponse);
assertEquals(
apiWhenDatacentersExists.getDatacenterApi().getDatacenters(),
ImmutableMap.<String, URI> builder().put("us-east-1", URI.create("https://us-east-1.api.joyentcloud.com"))
.put("us-west-1", URI.create("https://us-west-1.api.joyentcloud.com"))
.put("us-sw-1", URI.create("https://us-sw-1.api.joyentcloud.com"))
.put("eu-ams-1", URI.create("https://eu-ams-1.api.joyentcloud.com")).build());
}