@Test
public void shouldAddNetworkInterfacetoPublicRouter() throws OpenStackException, IOException {

    // given
    NetworkInstance net = new NetworkInstance("NETWORK", "vdc", "region");
    SubNetworkInstance subNet = new SubNetworkInstance("SUBNET", "vdc", "region", "CIDR");
    net.addSubNet(subNet);
    RouterInstance router = new RouterInstance();
    OpenStackAccess openStackAccess = new OpenStackAccess();
    openStackAccess.setToken("1234567891234567989");
    openStackAccess.setTenantId("08bed031f6c54c9d9b35b42aa06b51c0");
    when(openStackRegion.getTokenAdmin()).thenReturn(openStackAccess);
    when(openOperationUtil.executeNovaRequest(any(HttpUriRequest.class))).thenReturn(ROUTERS);
    when(openStackConfig.getPublicAdminNetwork(any(PaasManagerUser.class), anyString())).thenReturn("NETWORK");
    when(openStackConfig.getPublicRouter(any(PaasManagerUser.class), anyString(), anyString()))
            .thenReturn("router");
    // When
    String response = openStackUtil.addInterfaceToPublicRouter(paasManagerUser, net, "token");
    // then
    assertNotNull(response);
}