assertEquals( "The expected count was incorrect.", proxy.getValue(), 2 );
}
public void testCount1IncrementConnectedInactive() throws Exception
{
CounterInstrument ci = new CounterInstrument( "testInstrument" );
TestInstrumentProxy proxy = new TestInstrumentProxy();
ci.setInstrumentProxy( proxy );
assertEquals( "The instrument should not be active.", ci.isActive(), false );
ci.increment( 1 );
assertEquals( "The expected count was incorrect.", proxy.getValue(), 1 );
ci.increment( 2 );
assertEquals( "The expected count was incorrect.", proxy.getValue(), 3 );
}