MessageDigestCollector { public void append(byte[] bytes) { try { stream.write(bytes); } catch (IOException ex) { LOGGER.error("Could not append bytes to Stream", ex); } } MessageDigestCollector(); void append(byte[] bytes); byte[] digest(ProtocolVersion version, CipherSuite suite); void reset(); byte[] getRawBytes(); void setRawBytes(byte[] rawBytes);  }
@Test public void testAppend() { }