ResetRetriesCommand extends OsgiCommandSupport { @VisibleForTesting void setOut(PrintStream out) { this.out = out; } ResetRetriesCommand(ProcessEngine processEngine);   }
@Test public void testResumeCommandNeedsBusinessKey() throws Exception { final ResetRetriesCommand command = new ResetRetriesCommand(newMockProcessEngine()); command.setOut(out); CommandSession commandSession = mock(CommandSession.class); command.execute(commandSession); out.flush(); assertThat(outputStream.toString()).containsIgnoringCase("please supply a business key"); }