@Test
public void shouldHandleUuid() throws Exception {

  Codec<UUID> uuidCodec = mapper.codecFor(primitive(UUID));
  assertThat(uuidCodec).isSameAs(mapper.uuid);
  String uuidStr = "d79c8651-b8de-4f1c-b965-d41258e2373c";
  UUID uuid = java.util.UUID.fromString(uuidStr);
  String byteStr = "0xd79c8651b8de4f1cb965d41258e2373c";
  encodeAndDecode(uuidCodec, uuid, byteStr);
  encodeAndDecode(uuidCodec, null, null);
  encodeObjectAndDecode(uuidCodec, uuidStr, byteStr, uuid);
  encodeObjectAndDecode(uuidCodec, uuid, byteStr, uuid);
  encodeObjectAndDecode(uuidCodec, null, null, null);
  encodeObjectAndDecode(uuidCodec, Optional.of(12), null, null);
}