UuidType extends AbstractDERType implements DEREncoder { @Override public byte[] encode() { return encode(derItem); } UuidType(final UUID item);  UuidType(final DERTag tag, final UUID item); @Override byte[] encode(); static UUID decode(final DERBuffer encoded); static byte[] toBytes(final UUID uuid);  }
@Test(groups = "asn1", dataProvider = "uuids") public void encode(final byte[] expected, final UUID uuid) throws Exception { Assert.assertEquals(UuidType.toBytes(uuid), expected); }