### Question:
AlertServiceConfig { public final void enable() { enabled = true; } protected  AlertServiceConfig();  AlertServiceConfig(final String serviceType); final void enable(); final void disable(); boolean isEnabled(); final String getType(); final String getServiceIdentifier(); final void setServiceIdentifier(final String id); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final String toString();  }### Answer:
@Test public final void testEnable() { boolean enable = false; AlertServiceConfig asc = new AlertServiceConfig(JsonAlertService.NAME); asc.disable(); boolean testEnable = asc.isEnabled(); Assert.assertEquals(enable, testEnable); enable = true; asc.enable(); testEnable = asc.isEnabled(); Assert.assertEquals(enable, testEnable); }