### Question:
BaseOpenmrsDatatype extends SerializingCustomDatatype<T> { @Override public String serialize(T typedValue) { if (typedValue == null) { return null; } return typedValue.getUuid(); }  @Override String serialize(T typedValue);  }### Answer:
@Test public void serialize_shouldReturnTheUuidOfTheObject() { OpenmrsObject location = new Location(); String expectedUuid = "some uuid"; location.setUuid(expectedUuid); BaseOpenmrsDatatype datatype = new MockLocationDatatype(); Assert.assertEquals(expectedUuid, datatype.serialize(location)); }