@Test
public void testGetAttributeValueListEntityAttributeValueListEntityNoExists()
{

    // Create an attribute value list key.
    AttributeValueListKey attributeValueListKey = new AttributeValueListKey(ATTRIBUTE_VALUE_LIST_NAMESPACE, ATTRIBUTE_VALUE_LIST_NAME);
    // Mock calls to external methods.
    when(attributeValueListDao.getAttributeValueListByKey(attributeValueListKey)).thenReturn(null);
    // Try to call the method under test.
    try
    {
        attributeValueListDaoHelper.getAttributeValueListEntity(attributeValueListKey);
    }
    catch (ObjectNotFoundException e)
    {
        assertEquals(String
            .format("Attribute value list with name \"%s\" doesn't exist for namespace \"%s\".", ATTRIBUTE_VALUE_LIST_NAME, ATTRIBUTE_VALUE_LIST_NAMESPACE),
            e.getMessage());
    }
    // Verify the external calls.
    verify(attributeValueListDao).getAttributeValueListByKey(attributeValueListKey);
    verifyNoMoreInteractions(attributeValueListDao);
}