authenticatedGET().endpoint(endpoint).build(),
HttpResponse.builder().statusCode(200).payload(payloadFromResource("/flavor_list.json")).build() );
FlavorApi api = redDwarfApi.getFlavorApiForZone("RegionOne");
Set<? extends Flavor> flavors = api.list( redDwarfApi.getCurrentTenantId().get().getId() ).toSet();
Flavor flavor = flavors.iterator().next();
assertEquals(flavor.getName(), "512MB Instance");
assertEquals(flavor.getId(), 1);
assertEquals(flavor.getRam(), 512);
assertEquals(flavor.getLinks().size(), 2);
}