Configuration { public static void configure() { CoreUtils.setGlobalProperty(OpenmrsConstants.GP_VISIT_ASSIGNMENT_HANDLER, EmrVisitAssignmentHandler.class.getName()); }  static void configure();  }
@Test public void configure() { Assert.assertThat(adminService.getGlobalProperty(OpenmrsConstants.GP_VISIT_ASSIGNMENT_HANDLER), nullValue()); Configuration.configure(); Assert.assertThat(adminService.getGlobalProperty(OpenmrsConstants.GP_VISIT_ASSIGNMENT_HANDLER), is(EmrVisitAssignmentHandler.class.getName())); }