@Test
public void testGetSearchIndexStatusEntity()
{

    // Create and persist database entities required for testing.
    SearchIndexStatusEntity searchIndexStatusEntity = searchIndexStatusDaoTestHelper.createSearchIndexStatusEntity(SEARCH_INDEX_STATUS);
    // Retrieve the search index status entity.
    assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS));
    // Test case insensitivity of the search index status code.
    assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS.toUpperCase()));
    assertEquals(searchIndexStatusEntity, searchIndexStatusDaoHelper.getSearchIndexStatusEntity(SEARCH_INDEX_STATUS.toLowerCase()));
    // Try to retrieve a non existing search index status.
    try
    {
        searchIndexStatusDaoHelper.getSearchIndexStatusEntity(I_DO_NOT_EXIST);
        fail();
    }
    catch (ObjectNotFoundException e)
    {
        assertEquals(String.format("Search index status with code \"%s\" doesn't exist.", I_DO_NOT_EXIST), e.getMessage());
    }
}