### Question:
XBeeChecksum { public void reset() { value = 0; }  void add(int value); void add(byte[] data); void reset(); int generate(); boolean validate();  }### Answer:
@Test public final void testReset() { byte[] array = new byte[] {2, 6, 1}; int expectedResult = 0xFF; XBeeChecksum c = new XBeeChecksum(); c.add(array); c.reset(); assertThat("Returned result is not the expected one", c.generate(), is(equalTo(expectedResult))); }