PrinterImpl print = new PrinterImpl();
PrintListener listener1 = mock( PrintListener.class );
PrintListener listener2 = mock( PrintListener.class );
print.addPrintListener( listener1 );
print.addPrintListener( listener2 );
JsonObject properties = new JsonObject();
properties.add( "printer", "" );
properties.add( "jobName", "" );
print.print( "http://localhost/file.pdf", createOptions() );
environment.dispatchNotifyOnServiceObject( "Success", properties );
InOrder order = inOrder( listener1, listener2 );