@Test( expected = IllegalArgumentException.class )
public void verifyGetAggregateClauseWithValueFails()
{

    DimensionalItemObject dio = new BaseDimensionalItemObject( dataElementA.getUid() );
    EventQueryParams params = new EventQueryParams.Builder( createRequestParams() )
        .withValue( dio )
        .withAggregationType( fromAggregationType( AggregationType.CUSTOM ) )
        .build();
    subject.getAggregateClause( params );
}