### Question:
BaseUploader { public final boolean uploadDeviceStatus(AbstractUploaderDevice deviceStatus) { if (deviceStatus == null) { return true; } try { return doUpload(deviceStatus); } catch (IOException e) { log.error("Error uploading device status", e); return false; } } BaseUploader(NightscoutPreferences preferences); final boolean uploadGlucoseDataSets(List<GlucoseDataSet> glucoseDataSets); final boolean uploadMeterRecords(List<MeterEntry> meterRecords); final boolean uploadCalRecords(List<CalibrationEntry> calRecords); final boolean uploadDeviceStatus(AbstractUploaderDevice deviceStatus); boolean uploadRecords(List<GlucoseDataSet> glucoseDataSets, List<MeterEntry> meterRecords, List<CalibrationEntry> calRecords, AbstractUploaderDevice deviceStatus);  }### Answer:
@Test public void testUploadDeviceStatus_Exception() { try { exceptionUploader.uploadDeviceStatus(mockDeviceStatus()); } catch (Exception e) { fail("Shouldn't throw an exception."); } }