### Question:
CompartmentUtil { public static List<String> getCompartmentResourceTypes(final String compartment) throws FHIRSearchException { checkValidCompartment(compartment); return compartmentMap.get(compartment).getResourceTypesInCompartment(); } private  CompartmentUtil(); static void init(); static final Map<String, CompartmentCache> buildCompartmentMap(); static List<String> getCompartmentResourceTypes(final String compartment); static List<String> getCompartmentResourceTypeInclusionCriteria(final String compartment, final String resourceType); static void checkValidCompartment(final String compartment); static void checkValidCompartmentAndResource(final String compartment, final String resourceType); static void buildCompositeBundle(PrintStream out); static final String FHIR_PATH_BUNDLE_ENTRY; static final String RESOURCE; static final String PARSE_EXCEPTION; static final String IO_EXCEPTION; static final String INVALID_COMPARTMENT; static final String INVALID_COMPARTMENT_AND_RESOURCE; static final String FROM_STREAM; }### Answer:
@Test(expectedExceptions = {}) public void testGetCompartmentResourceTypeExists() throws FHIRSearchException { List<String> results = CompartmentUtil.getCompartmentResourceTypes("Patient"); assertNotNull(results); assertFalse(results.isEmpty()); }
@Test(expectedExceptions = { FHIRSearchException.class }) public void testGetCompartmentResourceTypeDoesNotExist() throws FHIRSearchException { CompartmentUtil.getCompartmentResourceTypes("FredF"); }