public void test_emptyChunk(){
  final IQueryClient queryController=new MockQueryController();
  final UUID queryId=UUID.randomUUID();
  final int bopId=1;
  final int partitionId=2;
  final IBindingSet[] source=new IBindingSet[]{};
  try {
    new ThickChunkMessage<IBindingSet>(queryController,queryId,bopId,partitionId,source);
    fail("Expecting: " + IllegalArgumentException.class);
  }
 catch (  IllegalArgumentException ex) {
    if (log.isInfoEnabled())     log.info("Ignoring expected exception: " + ex);
  }
}

public void test_emptyChunk ( ) { final IQueryClient queryController = new MockQueryController ( ) ; final UUID queryId = UUID . randomUUID ( ) ; final int bopId = 1 ; final int partitionId = 2 ; final IBindingSet [ ] source = new IBindingSet [ ] { } ; try { new ThickChunkMessage < IBindingSet > ( queryController , queryId , bopId , partitionId , source ) ; fail ( "Expecting: " + IllegalArgumentException . class ) ; } catch ( IllegalArgumentException ex ) { if ( log . isInfoEnabled ( ) ) log . info ( "Ignoring expected exception: " + ex ) ; } }
correct rejection test for an empty chunk ( no solutions , not even an empty solution ) .
