### Question:
CustomHeader extends Header { protected static byte[] hex(final String hex) { return DatatypeConverter.parseHexBinary(hex.replaceAll("\\s+", "")); } CustomHeader(BuildingSet buildingSet);  CustomHeader();  CustomHeader(Config conf); private  CustomHeader(int empty); void setBuildingSet(BuildingSet b); @Override byte[] generateHeader(); static byte[] int24write(int int32); static byte[] formatHeaderString(CharSequence s); static CustomHeader newEmpty(); Date getUnusedDate1(); void setUnusedDate1(Date unusedDate1); Date getUnusedDate2(); void setUnusedDate2(Date unusedDate2); Date getLastSaved(); void setLastSaved(Date lastSaved); Date getMapCreated(); void setMapCreated(Date mapCreated); long getWorkTime1(); void setWorkTime1(long workTime1); long getWorkTime2(); void setWorkTime2(long workTime2); String getMapName(); void setMapName(String mapName); byte[] getPngLength(); void setPngLength(byte[] pngLength); byte[] getPng(); void setPng(byte[] png);  }### Answer:
@Test public void testHex() throws Exception { String input = "fd 77 fc b6 e8 fe fe"; byte[] expecteds = { (byte) 0xfd, (byte) 0x77, (byte) 0xfc, (byte) 0xb6, (byte) 0xe8, (byte) 0xfe, (byte) 0xfe }; byte[] actuals = CustomHeader.hex(input); assertArrayEquals(expecteds, actuals); }