Demo extends Options { public Demo(Flags flags) throws Exception { if(flags.isPresent(flags.north)) { north(flags); } else if(flags.isPresent(flags.south)) { south(flags); } else { log.error("Please start the demo with either --north, or --south"); } } Demo(Flags flags);   Demo(); void run(North north); static void main(String[] commandLine);  }
@Test public void demo() throws Exception { new Demo().run(north); }