CassandraMonitor extends Task { @Inject protected CassandraMonitor( IConfiguration config, InstanceState instanceState, ICassandraProcess cassProcess, CassMonitorMetrics cassMonitorMetrics) { super(config); this.instanceState = instanceState; this.cassProcess = cassProcess; this.cassMonitorMetrics = cassMonitorMetrics; } @Inject protected  CassandraMonitor(
            IConfiguration config,
            InstanceState instanceState,
            ICassandraProcess cassProcess,
            CassMonitorMetrics cassMonitorMetrics); @Override void execute(); static TaskTimer getTimer(); @Override String getName(); static Boolean hasCassadraStarted(); static void setIsCassadraStarted(); static final String JOBNAME; }
@Test public void testCassandraMonitor() throws Exception { monitor.execute(); Assert.assertFalse(CassandraMonitor.hasCassadraStarted()); CassandraMonitor.setIsCassadraStarted(); Assert.assertTrue(CassandraMonitor.hasCassadraStarted()); monitor.execute(); Assert.assertFalse(CassandraMonitor.hasCassadraStarted()); }