SampleReportFactory { @VisibleForTesting static String checkHospitalPatientId(@NotNull String hospitalPatientId, @NotNull LimsStudy type, @NotNull String sampleId) { if (type == LimsStudy.CORE) { if (hospitalPatientId.equals(Lims.NOT_AVAILABLE_STRING) || hospitalPatientId.equals(Strings.EMPTY)) { LOGGER.warn("Missing hospital patient sample ID for sample '{}': {}. Please fix!", sampleId, hospitalPatientId); } } return hospitalPatientId; } private  SampleReportFactory(); @NotNull static SampleReport fromLimsModel(@NotNull SampleMetadata sampleMetadata, @NotNull Lims lims,
            @Nullable PatientTumorLocation patientTumorLocation);  }
@Test public void canCheckHospitalPatientId() { String coreSampleId = "CORE020000001T"; String wideSampleId = "WIDE020000001T"; LimsStudy typeCORE = LimsStudy.CORE; LimsStudy typeWIDE = LimsStudy.WIDE; String hospitalIdNA = Lims.NOT_AVAILABLE_STRING; String hospitalIDEmpty = Strings.EMPTY; String hospitalId = "1234"; assertEquals(hospitalIdNA, SampleReportFactory.checkHospitalPatientId(hospitalIdNA, typeCORE, coreSampleId)); assertEquals(hospitalIDEmpty, SampleReportFactory.checkHospitalPatientId(hospitalIDEmpty, typeCORE, coreSampleId)); assertEquals(hospitalId, SampleReportFactory.checkHospitalPatientId(hospitalId, typeCORE, coreSampleId)); assertEquals(hospitalIdNA, SampleReportFactory.checkHospitalPatientId(hospitalIdNA, typeWIDE, wideSampleId)); }