@Test
public void testGetExternalInterfaces()
{

    when(externalInterfaceDao.getExternalInterfaces()).thenReturn(ALL_EXTERNAL_INTERFACE_NAMES);
    ExternalInterfaceKeys externalInterfaceKeys = externalInterfaceService.getExternalInterfaces();
    assertNotNull(externalInterfaceKeys);
    List<ExternalInterfaceKey> externalInterfaceKeyList = externalInterfaceKeys.getExternalInterfaceKeys();
    assertEquals(ALL_EXTERNAL_INTERFACE_NAMES.size(), externalInterfaceKeyList.size());
    // verify the order is reserved
    assertEquals(EXTERNAL_INTERFACE, externalInterfaceKeyList.get(0).getExternalInterfaceName());
    assertEquals(EXTERNAL_INTERFACE_2, externalInterfaceKeyList.get(1).getExternalInterfaceName());
    assertEquals(EXTERNAL_INTERFACE_3, externalInterfaceKeyList.get(2).getExternalInterfaceName());
    verify(externalInterfaceDao).getExternalInterfaces();
    verifyNoMoreInteractionsHelper();
}