*
* @throws RemoteException if the test fails
*/
@Test
public void testModificatorMethods() throws RemoteException {
CounterWatch watch = new CounterWatch("watch");
checkData(new double[] {}, watch);
watch.decrement();
checkData(new double[] {-1}, watch);
watch.decrement(10);
checkData(new double[] {-1, -11}, watch);
watch.setCounter(-100);
checkData(new double[] {-1, -11, -100}, watch);
watch.setCounter(1);
checkData(new double[] {-1, -11, -100, 1}, watch);
watch.increment();
checkData(new double[] {-1, -11, -100, 1, 2}, watch);
watch.increment(10);
checkData(new double[] {-1, -11, -100, 1, 2, 12}, watch);
watch.decrement(13);
checkData(new double[] {-1, -11, -100, 1, 2, 12, -1}, watch);
Utils.close(watch.getWatchDataSource());
}