@Test
  public void testShouldGetEndPointsForNovaAndARegionNameUsingCache() throws OpenStackException {
    // given

    String regionName = "RegionOne";
    String token = "123123232";

    RegionCache regionCache = new RegionCache();
    regionCache.putUrl("RegionOne", "compute", "http://130.206.80.58:8774/v2/12321312312312321");

    // when

    String resultURL = openStackRegion.getNovaEndPoint(regionName, token);
    // then
    assertNotNull(resultURL);
    assertEquals("http://130.206.80.58:8774/v2/", resultURL);
  }
  @Test
  public void testShouldGetEndPointsForFederatedNetwork() throws OpenStackException {
    // given

    String token = "123123232";
    when(builder.get()).thenReturn(clientResponse);
    when(clientResponse.getStatus()).thenReturn(200);
    when(clientResponse.readEntity(String.class)).thenReturn(RESPONSE_JSON_GRIZZLY_TWO_REGIONS);
    RegionCache regionCache = new RegionCache();
    regionCache.putUrl(
        "regionOne", "federatednetwork", "http://130.206.80.58:8774/v2/12321312312312321");

    // when

    String resultURL = openStackRegion.getFederatedQuantumEndPoint(token);
    // then
    assertNotNull(resultURL);
    assertEquals("http://130.206.80.58:8774/v2/12321312312312321", resultURL);
  }