### Question:
Point { public byte[] toBytes() { return point; } Point();  Point(byte[] point);  Point(String point, Encoder encoder); Point mult(byte[] n); Point mult(String n, Encoder encoder); @Override String toString(); byte[] toBytes();  }### Answer:
@Test public void testSerializeToBytes() throws Exception { Point point = new Point(TestVectors.BOB_PUBLIC_KEY, HEX); assertTrue("Should serialize to bytes", Arrays.equals(HEX.decode(TestVectors.BOB_PUBLIC_KEY), point.toBytes())); }