@Test
public void testGetStorageUnitEntityByBusinessObjectDataAndStorageName()
{

    // Create a business object data entity.
    BusinessObjectDataEntity businessObjectDataEntity = new BusinessObjectDataEntity();
    // Create a storage unit entity.
    StorageUnitEntity storageUnitEntity = new StorageUnitEntity();
    // Create a storage entity
    StorageEntity storageEntity = new StorageEntity();
    // Mock the external calls.
    when(storageDao.getStorageByName(STORAGE_NAME)).thenReturn(storageEntity);
    when(storageUnitDao.getStorageUnitByBusinessObjectDataAndStorage(businessObjectDataEntity, storageEntity)).thenReturn(storageUnitEntity);
    // Call the method under test.
    StorageUnitEntity result = storageUnitDaoHelper.getStorageUnitEntity(STORAGE_NAME, businessObjectDataEntity);
    // Validate the results.
    assertEquals(storageUnitEntity, result);
    // Verify the external calls.
    verify(storageDao).getStorageByName(STORAGE_NAME);
    verify(storageUnitDao).getStorageUnitByBusinessObjectDataAndStorage(businessObjectDataEntity, storageEntity);
    verifyNoMoreInteractionsHelper();
}