### Question:
NamespaceByIdResponseResolver implements Function<UUID, Namespace> { @Override public Namespace apply(UUID id) { if (id == null) return null; return Namespace.builder() .setId(GLOBAL_NAMESPACE) .setName("Global") .build(); }  @Override Namespace apply(UUID id);  }### Answer:
@Test public void testConvertNamespace() { Namespace model = converter.apply(UUID.randomUUID()); assertNotNull(model); assertNotNull(model.getName()); assertEquals(GLOBAL_NAMESPACE, model.getId()); }
@Test public void testConvertNullReturnsNull() { assertNull(converter.apply(null)); }