### Question:
Device extends AbstractEntity { public void setSupplyChainStatus(final AppraisalStatus.Status supplyChainValidationStatus) { if (supplyChainValidationStatus == null) { throw new NullPointerException(" supply chain validation status"); } this.supplyChainValidationStatus = supplyChainValidationStatus; } protected  Device();  Device(final String name);  Device(final String name, final DeviceInfoReport deviceInfo); static Device getInstance(final String xml); final String getName(); final void setName(final String name); final DeviceInfoReport getDeviceInfo(); final void setDeviceInfo(final DeviceInfoReport deviceInfo); final DeviceGroup getDeviceGroup(); final void setDeviceGroup(final DeviceGroup deviceGroup); final String toXML(); final Timestamp getLastReportTimestamp(); void setLastReportTimestamp(final Timestamp timestamp); final void clearOverride(); final void overrideState(final String newOverrideReason); final String getOverrideReason(); boolean isStateOverridden(); HealthStatus getHealthStatus(); void setHealthStatus(final HealthStatus healthStatus); AppraisalStatus.Status getSupplyChainStatus(); void setSupplyChainStatus(final AppraisalStatus.Status supplyChainValidationStatus); String getSummaryId(); void setSummaryId(final String summaryId); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void testSetNullSupplyChainStatus() { String name = "my-laptop"; DeviceInfoReport deviceInfo = DeviceInfoReportTest.getTestReport(); Device dev = new Device(name, deviceInfo); dev.setSupplyChainStatus(null); }