@Test
public void testUpdateSearchIndexStatus()
{

    // Create and persist a search index entity.
    SearchIndexEntity searchIndexEntity = searchIndexDaoTestHelper.createSearchIndexEntity(SEARCH_INDEX_NAME, SEARCH_INDEX_TYPE, SEARCH_INDEX_STATUS);
    // Create and persist a search index status entity.
    searchIndexStatusDaoTestHelper.createSearchIndexStatusEntity(SEARCH_INDEX_STATUS_2);
    // Update the status of the search index entity.
    searchIndexDaoHelper.updateSearchIndexStatus(new SearchIndexKey(SEARCH_INDEX_NAME), SEARCH_INDEX_STATUS_2);
    // Validate the results.
    assertEquals(SEARCH_INDEX_STATUS_2, searchIndexEntity.getStatus().getCode());
}