@Test
public void testCreateExternalInterfaceAlreadyExists()
{

    expectedException.expect(AlreadyExistsException.class);
    expectedException.expectMessage(String.format("Unable to create external interface \"%s\" because it already exists.", EXTERNAL_INTERFACE));
    when(externalInterfaceDao.getExternalInterfaceByName(EXTERNAL_INTERFACE)).thenReturn(EXTERNAL_INTERFACE_ENTITY);
    when(alternateKeyHelper.validateStringParameter(anyString(), anyString(), anyString())).thenReturn(EXTERNAL_INTERFACE);
    externalInterfaceService.createExternalInterface(EXTERNAL_INTERFACE_CREATE_REQUEST);
}