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