@Test
public void testPipelineRuns() throws Exception {

    MacroBaseConf conf = new MacroBaseConf();
    conf.set(MacroBaseConf.PIPELINE_NAME, "macrobase.runtime.command.MacroBasePipelineCommandTest");
    MacroBasePipelineCommand cmd1 = new MacroBasePipelineCommand();
    cmd1.run(null, new Namespace(new HashMap<>()), conf);
    assertFalse(MacroBaseMockPipeline.initialized);
    TestCase.assertFalse(MacroBaseMockPipeline.ran);
    conf.set(MacroBaseConf.PIPELINE_NAME, "macrobase.runtime.command.MacroBaseMockPipeline");
    MacroBasePipelineCommand cmd2 = new MacroBasePipelineCommand();
    cmd2.run(null, new Namespace(new HashMap<>()), conf);
    assertTrue(MacroBaseMockPipeline.initialized);
    assertTrue(MacroBaseMockPipeline.ran);
    MacroBaseMockPipeline.initialized = false;
    MacroBaseMockPipeline.ran = false;
    MacroBasePipelineCommand cmd3 = new MacroBasePipelineCommand();
    cmd3.run(null, new Namespace(new HashMap<>()), conf);
    assertTrue(MacroBaseMockPipeline.initialized);
    assertTrue(MacroBaseMockPipeline.ran);
}