@Test
public void testGetStorageFileEntityByStorageUnitEntityAndFilePath()
{

    // Create a new business object data key
    BusinessObjectDataKey businessObjectDataKey =
        new BusinessObjectDataKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUBPARTITION_VALUES,
            DATA_VERSION);
    // Create a storage unit entity.
    StorageUnitEntity storageUnitEntity = new StorageUnitEntity();
    // Create a file path.
    String filePath = TEST_S3_KEY_PREFIX + "/" + LOCAL_FILE;
    // Create a storage file entity
    StorageFileEntity storageFileEntity = new StorageFileEntity();
    storageFileEntity.setPath(TEST_S3_KEY_PREFIX);
    storageFileEntity.setRowCount(ROW_COUNT);
    storageFileEntity.setFileSizeBytes(FILE_SIZE);
    // Mock the external calls.
    when(storageFileDao.getStorageFileByStorageUnitEntityAndFilePath(storageUnitEntity, filePath)).thenReturn(storageFileEntity);
    // Call the method under test.
    StorageFileEntity result = storageFileDaoHelper.getStorageFileEntity(storageUnitEntity, filePath, businessObjectDataKey);
    // Validate the results.
    assertThat("Result not equal to storage file entity.", result, is(storageFileEntity));
    // Verify the external calls.
    verify(storageFileDao).getStorageFileByStorageUnitEntityAndFilePath(storageUnitEntity, filePath);
    verifyNoMoreInteractionsHelper();
}