@Test
public void testValidateBusinessObjectDataSearchRequestMissingRequiredParameters()
{

    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(null);
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data search request must be specified.", e.getMessage());
    }
    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(new BusinessObjectDataSearchRequest());
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data search filter must be specified.", e.getMessage());
    }
    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(new BusinessObjectDataSearchRequest(new ArrayList<>()));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data search filter must be specified.", e.getMessage());
    }
    try
    {
        businessObjectDataSearchHelper
            .validateBusinessObjectDataSearchRequest(new BusinessObjectDataSearchRequest(Collections.singletonList(new BusinessObjectDataSearchFilter())));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data search key must be specified.", e.getMessage());
    }
    try
    {
        businessObjectDataSearchHelper.validateBusinessObjectDataSearchRequest(
            new BusinessObjectDataSearchRequest(Collections.singletonList(new BusinessObjectDataSearchFilter(new ArrayList<>()))));
        fail();
    }
    catch (IllegalArgumentException e)
    {
        assertEquals("A business object data search key must be specified.", e.getMessage());
    }
}