### Question:
RuntimePresenterHelper { public static State buildStageState(final PipelineStatus stageStatus) { if (stageStatus == null) { return State.DONE; } switch (stageStatus) { case RUNNING: return State.EXECUTING; case ERROR: return State.ERROR; case STOPPED: return State.STOPPED; default: return State.DONE; } }  static Collection<String> buildIconStyle(final PipelineStatus status); static RuntimeStatus buildRuntimeStatus(String status); static Collection<String> buildIconStyle(final RuntimeStatus status); static State buildStageState(final PipelineStatus stageStatus);  }### Answer:
@Test public void testBuildStageState() { assertEquals(State.DONE, RuntimePresenterHelper.buildStageState(null)); assertEquals(State.EXECUTING, RuntimePresenterHelper.buildStageState(PipelineStatus.RUNNING)); assertEquals(State.ERROR, RuntimePresenterHelper.buildStageState(PipelineStatus.ERROR)); assertEquals(State.STOPPED, RuntimePresenterHelper.buildStageState(PipelineStatus.STOPPED)); }