@Test
public void testValidateBusinessObjectDataSearchRequestInvalidValues()
{

    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(
            new BusinessObjectDataSearchRequest(Arrays.asList(new BusinessObjectDataSearchFilter(), new BusinessObjectDataSearchFilter())));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A list of business object data search filters can only have one element.", e.getMessage());
    }
    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(new BusinessObjectDataSearchRequest(Collections
            .singletonList(new BusinessObjectDataSearchFilter(Arrays.asList(new BusinessObjectDataSearchKey(), new BusinessObjectDataSearchKey())))));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A list of business object data search keys can only have one element.", e.getMessage());
    }
}