@Test
public void testGetRouterControlIpWithRouterIp() {

    // Prepare
    List<NicVO> nics = new ArrayList<>();
    NicVO nic1 = mock(NicVO.class);
    when(nic1.getNetworkId()).thenReturn(NW_ID_1);
    when(nic1.getIPv4Address()).thenReturn(null);
    nics.add(nic1);
    when(this.nicDao.listByVmId(ROUTER_ID)).thenReturn(nics);
    NetworkVO nw1 = mock(NetworkVO.class);
    when(nw1.getTrafficType()).thenReturn(TrafficType.Public);
    when(this.nwDao.findById(NW_ID_1)).thenReturn(nw1);
    DomainRouterVO router = mock(DomainRouterVO.class);
    when(this.routerDao.findById(ROUTER_ID)).thenReturn(router);
    when(router.getPrivateIpAddress()).thenReturn(IP4_ADDRES1);
    // Execute
    final String ip4address = this.routerControlHelper.getRouterControlIp(ROUTER_ID);
    // Assert
    assertEquals(DIDN_T_GET_THE_EXPECTED_IP4_ADDRESS, IP4_ADDRES1, ip4address);
}