@Test public void shouldGetAPresenterWithCanRunStatus() throws Exception { StageJsonPresentationModel presenter = new StageJsonPresentationModel(pipeline, stage, null, new Agents()); presenter.setCanRun(true); Map json = presenter.toJson(); new JsonTester(json).shouldContain("{ 'getCanRun' : 'true' }"); }