### Question:
FHIRBuilders { public static void addOrganizationTag(Resource resource, UUID organizationID) { Meta meta = resource.getMeta(); if (meta == null) { meta = new Meta(); } meta.addTag(DPCIdentifierSystem.DPC.getSystem(), organizationID.toString(), "Organization ID"); resource.setMeta(meta); } private  FHIRBuilders(); static Practitioner buildPractitionerFromNPI(String npi); static Patient buildPatientFromMBI(String mbi); static void addOrganizationTag(Resource resource, UUID organizationID);  }### Answer:
@Test void testTagAdditionNoMeta() { final UUID uuid = UUID.randomUUID(); final Patient patient = new Patient(); patient.setGender(Enumerations.AdministrativeGender.FEMALE); FHIRBuilders.addOrganizationTag(patient, uuid); assertAll(() -> assertNotNull(patient.getMeta(), "Should have meta"), () -> assertEquals(1, patient.getMeta().getTag().size(), "Should have a single tag"), () -> assertEquals(uuid.toString(), patient.getMeta().getTagFirstRep().getCode(), "Should have correct code"), () -> assertEquals(DPCIdentifierSystem.DPC.getSystem(), patient.getMeta().getTagFirstRep().getSystem(), "Should have correct system")); }
@Test void testTagAdditionExistingMeta() { final Meta meta = new Meta(); meta.addTag().setSystem("http: final UUID uuid = UUID.randomUUID(); final Patient patient = new Patient(); patient.setMeta(meta); patient.setGender(Enumerations.AdministrativeGender.FEMALE); FHIRBuilders.addOrganizationTag(patient, uuid); assertAll(() -> assertNotNull(patient.getMeta(), "Should have meta"), () -> assertEquals(2, patient.getMeta().getTag().size(), "Should have a single tag")); }