### Question:
PcrSelection { public final String getMaskForTPM() { final int expectedNumBytesInMask = 3; StringBuilder hex = new StringBuilder(); for (int i = 0; i < expectedNumBytesInMask && i < this.pcrSelect.length; i++) { hex.append(String.format("%02x", reverseBits(this.pcrSelect[i]))); } while (hex.length() < expectedNumBytesInMask * 2) { hex.append("00"); } return hex.toString(); } protected  PcrSelection();  PcrSelection(final byte[] pcrSelect);  PcrSelection(final long pcrSelectLong); @XmlAttribute(name = "SizeOfSelect", required = true) @XmlSchemaType(name = "unsignedShort") final int getSizeOfSelect(); final byte[] getPcrSelect(); final boolean isPcrSelected(final int pcrNumber); final String getMaskForTPM(); @Override final int hashCode(); @Override final boolean equals(final Object obj); final int getLength(); final byte[] getValue(); static final int ALL_PCRS_ON; }### Answer:
@Test public final void testGetMaskLarge() { byte[] selectionBytes = {ON_BITS, ON_BITS}; String expectedMask = "ffff00"; PcrSelection pcrSelection = new PcrSelection(selectionBytes); Assert.assertEquals(pcrSelection.getMaskForTPM(), expectedMask); }