private <T extends DataObject>void testSet(DbClient dbClient,Class<T> clazz) throws Exception {
  T obj=clazz.newInstance();
  setAll(clazz,obj);
  dbClient.persistObject(obj);
  DataObject qObj=dbClient.queryObject(clazz,obj.getId());
  getAllAndVerify(clazz,qObj);
}

private < T extends DataObject > void testSet ( DbClient dbClient , Class < T > clazz ) throws Exception { T obj = clazz . newInstance ( ) ; setAll ( clazz , obj ) ; dbClient . persistObject ( obj ) ; DataObject qObj = dbClient . queryObject ( clazz , obj . getId ( ) ) ; getAllAndVerify ( clazz , qObj ) ; }
set all fields on the object , persist it , query it back and verify field values
