### Question:
IMADeviceState extends DeviceState { public final void setPcrState(final byte[] pcrState) { if (pcrState == null) { this.pcrState = null; } else { this.pcrState = Arrays.copyOf(pcrState, pcrState.length); } } IMADeviceState(final Device device); protected  IMADeviceState(); final Long getId(); final void resetState(); final Device getDevice(); final String getBootcycleId(); final void setBootcycleId(final String bootcycleId); final int getIndex(); final void setIndex(final int index); final Date getMostRecentFullReportDate(); final void setMostRecentFullReportDate(final Date date); @Override Criterion getDeviceTrustAlertCriterion(); final byte[] getPcrState(); final void setPcrState(final byte[] pcrState); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final String toString();  }### Answer:
@Test public void testSetPcrState() { final Device device = new Device("Test Device"); final IMADeviceState state = new IMADeviceState(device); final byte[] pcr = new byte[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13}; Assert.assertNull(state.getPcrState()); state.setPcrState(pcr); Assert.assertEquals(state.getPcrState(), pcr); }