@Test
public void testValidateExternalInterfaceCreateRequestExtraSpaces()
{

    when(alternateKeyHelper.validateStringParameter(anyString(), anyString(), anyString())).thenReturn(EXTERNAL_INTERFACE);
    assertEquals(EXTERNAL_INTERFACE_NAME_WITH_EXTRA_SPACES,
        EXTERNAL_INTERFACE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME.getExternalInterfaceKey().getExternalInterfaceName());
    externalInterfaceService.validateExternalInterfaceCreateRequest(EXTERNAL_INTERFACE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME);
    // White space should be trimmed now
    assertEquals(EXTERNAL_INTERFACE, EXTERNAL_INTERFACE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME.getExternalInterfaceKey().getExternalInterfaceName());
}