TPSMonitor { public boolean isEnabled() { return period > 0; } TPSMonitor(int period); boolean isEnabled(); TPSInfoContainer getTPSInfo(); void addToMap(final String loggingKey, final BaseRequest req);  }
@Test public void testIsEnabled_1() throws Exception { TPSMonitor fixture = new TPSMonitor(1); boolean result = fixture.isEnabled(); assertTrue(result); }
@Test public void testIsEnabled_2() throws Exception { TPSMonitor fixture = new TPSMonitor(0); boolean result = fixture.isEnabled(); assertFalse(result); }