public void testSafeMode() throws Exception {
runTest(END_POINTS, SERVLET_CLASSES, IS_SECURITY_ENABLED, new Callable<Void>() {
public Void call() throws Exception {
String oozieUrl = getContextURL();
OozieClient wc = new OozieClient(oozieUrl);
SYSTEM_MODE systemMode = wc.getSystemMode();
assertEquals(systemMode, SYSTEM_MODE.NORMAL);
wc.setSystemMode(SYSTEM_MODE.SAFEMODE);
systemMode = wc.getSystemMode();
assertEquals(systemMode, SYSTEM_MODE.SAFEMODE);