@Test
public void reset() {

  DRes<SInt> firstArgument = mock(DRes.class);
  DRes<SInt> secondArgument = mock(DRes.class);
  decorator.mult(firstArgument, secondArgument);
  decorator.add(firstArgument, secondArgument);
  decorator.sub(firstArgument, secondArgument);
  decorator.randomBit();
  decorator.randomElement();
  Assert.assertEquals(decorator.getLoggedValues().get("MULT_COUNT").intValue(), 1);
  Assert.assertEquals(decorator.getLoggedValues().get("ADD_COUNT").intValue(), 1);
  Assert.assertEquals(decorator.getLoggedValues().get("SUB_COUNT").intValue(), 1);
  Assert.assertEquals(decorator.getLoggedValues().get("BIT_COUNT").intValue(), 1);
  Assert.assertEquals(decorator.getLoggedValues().get("RANDOM_ELEMENT_COUNT").intValue(), 1);
  decorator.reset();
  Assert.assertEquals(decorator.getLoggedValues().get("MULT_COUNT").intValue(), 0);
  Assert.assertEquals(decorator.getLoggedValues().get("ADD_COUNT").intValue(), 0);
  Assert.assertEquals(decorator.getLoggedValues().get("SUB_COUNT").intValue(), 0);
  Assert.assertEquals(decorator.getLoggedValues().get("BIT_COUNT").intValue(), 0);
  Assert.assertEquals(decorator.getLoggedValues().get("RANDOM_ELEMENT_COUNT").intValue(), 0);
}