WideFileInputInterpreter { @Nullable static Boolean convertHasReceivedSuccessfulReport(@NotNull String hasReceivedSuccessfulReport) { if (hasReceivedSuccessfulReport.equals("yes")) { return true; } else if (hasReceivedSuccessfulReport.equals("no")) { return false; } else { return null; } } private  WideFileInputInterpreter();   }
@Test public void canConvertHasSuccessfulReport() { assertTrue(WideFileInputInterpreter.convertHasReceivedSuccessfulReport("yes")); assertFalse(WideFileInputInterpreter.convertHasReceivedSuccessfulReport("no")); assertNull(WideFileInputInterpreter.convertHasReceivedSuccessfulReport("")); }