@org.junit.Test public void testSerializedFromJson(){
  final List<RunningQuery> rQueries=deserialize(rQueryJson);
  assert (rQueries != null);
  final Iterator<RunningQuery> iter=rQueries.iterator();
  int i=0;
  assert (iter.hasNext());
  while (iter.hasNext()) {
    final RunningQuery r=iter.next();
    i++;
  }
  assertEquals(i,2);
}

@ org . junit . Test public void testSerializedFromJson ( ) { final List < RunningQuery > rQueries = deserialize ( rQueryJson ) ; assert ( rQueries != null ) ; final Iterator < RunningQuery > iter = rQueries . iterator ( ) ; int i = 0 ; assert ( iter . hasNext ( ) ) ; while ( iter . hasNext ( ) ) { final RunningQuery r = iter . next ( ) ; i ++ ; } assertEquals ( i , 2 ) ; }
test the serialization from json to java objects
