@Test
public void testGetExternalInterfaceEntityExternalInterfaceNoExists()
{

    // Mock the external calls.
    when(externalInterfaceDao.getExternalInterfaceByName(EXTERNAL_INTERFACE)).thenReturn(null);
    // Specify the expected exception.
    expectedException.expect(ObjectNotFoundException.class);
    expectedException.expectMessage(String.format("External interface with name \"%s\" doesn't exist.", EXTERNAL_INTERFACE));
    // Call the method under test.
    externalInterfaceDaoHelper.getExternalInterfaceEntity(EXTERNAL_INTERFACE);
    // Verify the external calls.
    verify(externalInterfaceDao).getExternalInterfaceByName(EXTERNAL_INTERFACE);
    verifyNoMoreInteractionsHelper();
}