replace system.out.print to assert