}
@Test
public void testSendsPrintWithPrintCall() {
RemoteObject remoteObject = environment.getServiceObject();
Printer print = new PrinterImpl();
print.print( "http://localhost/file.pdf", createOptions() );
ArgumentCaptor<JsonObject> captor = ArgumentCaptor.forClass( JsonObject.class );
verify( remoteObject ).call( eq( "print" ), captor.capture() );
assertEquals( "http://localhost/file.pdf", captor.getValue().get( "url" ).asString() );
assertEquals( "A Printer ID", captor.getValue().get( "printer" ).asString() );