boolean res2 = PrintServiceLookup.registerService(ps2);
assertTrue("PrintService #2 should be registered.", res2);
PrintService[] pss = PrintServiceLookup.lookupPrintServices(null, null);
assertEquals("lookup should report two PrintServices.", numberOfPrintservicesBefore + 2, pss.length);
DocPrintJob job1 = mock(DocPrintJob.class);
when(ps1.createPrintJob()).thenReturn(job1);
context.addRoutes(new RouteBuilder() {
public void configure() {