@Test
public void testGetExternalInterfaces()
{

    ExternalInterfaceKeys externalInterfaceKeys =
        new ExternalInterfaceKeys(Arrays.asList(new ExternalInterfaceKey(EXTERNAL_INTERFACE), new ExternalInterfaceKey(EXTERNAL_INTERFACE_2)));
    when(externalInterfaceService.getExternalInterfaces()).thenReturn(externalInterfaceKeys);
    // Retrieve a list of external interface keys.
    ExternalInterfaceKeys resultExternalInterfaceKeys = externalInterfaceRestController.getExternalInterfaces();
    // Verify the external calls.
    verify(externalInterfaceService).getExternalInterfaces();
    verifyNoMoreInteractions(externalInterfaceService);
    // Validate the returned object.
    assertEquals(externalInterfaceKeys, resultExternalInterfaceKeys);
}