public void testGetStages() throws Exception {
Pipeline p = new Pipeline();
StageGroup g = new StageGroup("1");
g.addStage(new Stage("stage", Mockito.mock(DatabaseFile.class)));
g.addStage(new Stage("stage2", Mockito.mock(DatabaseFile.class)));
p.addGroup(g);
Mockito.when(reader.getPipeline()).thenReturn(p);
List<String> stages = GroupStarter.getStages("localhost", server.getPort(), "1");