Engines { public static boolean isOozie(final String engine) { return engine != null && engine.startsWith("oozie"); }  static boolean isOozie(final String engine); static boolean isWhiteStar(final String engine); static boolean isWhiteStarParallel(final String engine); static boolean supportsCancel(final String engine); static boolean supportsRetry(final String engine); static final String ENGINES_LIST; static final String DEFAULT_ENGINE; static final Set<String> ENGINES; }
@Test public void testIsOozie() { String engine = Engines.TYPES.whitestar.getCliString(); boolean result = Engines.isOozie(engine); assertEquals(false, result); engine = Engines.TYPES.oozie_sge.getCliString(); result = Engines.isOozie(engine); assertEquals(true, result); }