### Question:
ModeUtil { public static boolean isRunmode(String mode) { return runmodes.contains(mode); }  static WCMMode getMode(SlingHttpServletRequest req); static boolean isAuthor(); static boolean isPublish(); static boolean isRunmode(String mode); static boolean isAnalytics(SlingHttpServletRequest request); static boolean isDesign(SlingHttpServletRequest request); static boolean isDisabled(SlingHttpServletRequest request); static boolean isEdit(SlingHttpServletRequest request); static boolean isPreview(SlingHttpServletRequest request); static boolean isReadOnly(SlingHttpServletRequest request); static boolean isClassic(SlingHttpServletRequest request); static boolean isTouch(SlingHttpServletRequest request); static synchronized void configure(SlingSettingsService slingSettings);  }### Answer:
@Test public void testIsRunmode() throws Exception { modes.add("publish"); ModeUtil.configure(slingSettings); assertTrue(ModeUtil.isRunmode("publish")); verify(slingSettings).getRunModes(); verifyNoMoreInteractions(slingSettings, context); }