AutomonAspectBase { public void setOpenMon(OpenMon openMon) { this.openMon = openMon; } AutomonAspectBase(); boolean isEnabled(); OpenMon getOpenMon(); void setOpenMon(OpenMon openMon); void setOpenMon(String openMonKey); OpenMonFactory getOpenMonFactory();  }
@Test public void testSetOpenMon() throws Exception { OpenMon nullMon = new NullImp(); automonAspectBase.setOpenMon(nullMon); assertThat(automonAspectBase.isEnabled()).isFalse(); assertThat(automonAspectBase.getOpenMon()).isEqualTo(nullMon); automonAspectBase.setOpenMon(openMon); assertThat(automonAspectBase.isEnabled()).isTrue(); assertThat(automonAspectBase.getOpenMon()).isEqualTo(openMon); }