@Test
public void testCreateSearchIndexEntity()
{

    // Create a search index create request.
    SearchIndexCreateRequest searchIndexCreateRequest = new SearchIndexCreateRequest(SEARCH_INDEX_TYPE);
    // Creates a test search index type entity.
    SearchIndexTypeEntity searchIndexTypeEntity = new SearchIndexTypeEntity();
    searchIndexTypeEntity.setCode(SEARCH_INDEX_TYPE);
    // Creates a test search index status entity.
    SearchIndexStatusEntity searchIndexStatusEntity = new SearchIndexStatusEntity();
    searchIndexStatusEntity.setCode(SEARCH_INDEX_STATUS);
    // Create a search index entity from the search index create request.
    SearchIndexEntity searchIndexEntity =
        searchIndexServiceImpl.createSearchIndexEntity(searchIndexCreateRequest, searchIndexTypeEntity, searchIndexStatusEntity);
    // Verify the external calls.
    verifyNoMoreInteractions(alternateKeyHelper, businessObjectDefinitionDao, businessObjectDefinitionHelper, configurationDaoHelper,
        searchIndexDao, searchIndexDaoHelper, searchIndexHelperService, searchIndexStatusDaoHelper, searchIndexTypeDaoHelper);
    // Validate the returned object.
    assertNotNull(searchIndexEntity);
    assertNotNull(searchIndexEntity.getType());
    assertEquals(SEARCH_INDEX_TYPE, searchIndexEntity.getType().getCode());
    assertNotNull(searchIndexEntity.getStatus());
    assertEquals(SEARCH_INDEX_STATUS, searchIndexEntity.getStatus().getCode());
    assertNull(searchIndexEntity.getCreatedBy());
    assertNull(searchIndexEntity.getCreatedOn());
    assertNull(searchIndexEntity.getUpdatedBy());
    assertNull(searchIndexEntity.getUpdatedOn());
}