@Test
public void testValidateFileTypeCreateRequestExtraSpaces() {

    when(alternateKeyHelper.validateStringParameter(anyString(), anyString())).thenReturn(FORMAT_FILE_TYPE_CODE);
    assertEquals(FILE_TYPE_CODE_WITH_EXTRA_SPACES, FILE_TYPE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME.getFileTypeCode());
    fileTypeMockService.validateFileTypeCreateRequest(FILE_TYPE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME);
    // White space should be trimmed now
    assertEquals(FORMAT_FILE_TYPE_CODE, FILE_TYPE_CREATE_REQUEST_WITH_EXTRA_SPACES_IN_NAME.getFileTypeCode());
}