### Question:
DBIMADeviceStateManager extends DBDeviceStateManager implements IMADeviceStateManager { @Override public final void updateState(final IMADeviceState state) throws IMADeviceStateManagerException { try { super.updateState(state); } catch (DeviceStateManagerException e) { throw new IMADeviceStateManagerException(e); } } DBIMADeviceStateManager(final SessionFactory factory); @Override final IMADeviceState saveState(final IMADeviceState state); @Override final IMADeviceState getState(final Device device); @Override final void updateState(final IMADeviceState state); @Override final boolean deleteState(final Device device);  }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void testUpdateStateWithNullState() { stateManager.updateState(null); }