### Question:
PipelineHelper { public static boolean isWorkflowRun(Run<?, ?> build, StaticJenkinsAPIs staticJenkinsAPIs) { if (hasWorkflowClass == null) { if (!staticJenkinsAPIs.hasPlugin(PIPELINE_PLUGIN)) { hasWorkflowClass = false; return false; } try { workflowRunClass = Class.forName(WORKFLOW_RUN_CLASS_NAME); hasWorkflowClass = true; } catch (ClassNotFoundException e) { hasWorkflowClass = false; return false; } } if (hasWorkflowClass) { return workflowRunClass.isInstance(build); } return false; } private  PipelineHelper(); static boolean isWorkflowRun(Run<?, ?> build, StaticJenkinsAPIs staticJenkinsAPIs); static List<String> getPipelines(Run<?, ?> run);  }### Answer:
@Test public void isWorkflowRun() { Assert.assertTrue(PipelineHelper.isWorkflowRun(workflowRun, new StaticJenkinsAPIs())); }
@Test public void isNotWorkflowRun() { Assert.assertFalse(PipelineHelper.isWorkflowRun(abstractBuild, new StaticJenkinsAPIs())); }