### Question:
DBDeviceManager extends DBManager<Device> implements
        DeviceManager { @Override public final void updateDevice(final Device device) throws DeviceManagerException { LOGGER.debug("updating device: {}", device); try { super.update(device); } catch (DBManagerException e) { throw new DeviceManagerException(e); } } DBDeviceManager(final SessionFactory sessionFactory); @Override final Device saveDevice(final Device device); @Override final void updateDevice(final Device device); @Override final void updateDeviceList(final Set<Device> deviceList); @Override final Set<Device> getDeviceList(); @Override final List<String> getDeviceNameList(); @Override final FilteredRecordsList<Device> getOrderedDeviceList(
            final String columnToOrder, final boolean ascending, final int firstResult,
            final int maxResults, final String search); @Override final Device getDevice(final String name); @Override final List<Device> getDefaultDevices(); @Override final boolean deleteDevice(final String name);  }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void testUpdateNullDevice() throws DeviceManagerException { LOGGER.debug("testUpdateNullDevice test started"); final DeviceManager mgr = new DBDeviceManager(sessionFactory); mgr.updateDevice(null); Assert.fail("save did not fail"); }