### Question:
CustomHeader extends Header { public static byte[] int24write(int int32) { return new byte[] { (byte) (int32 >>> 16), (byte) (int32 >>> 8), (byte) (int32) }; } 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 testInt24write() throws Exception { byte[] expecteds = { (byte) 0x00, (byte) 0x00, (byte) 0x03 }; byte[] actuals = CustomHeader.int24write(3); assertArrayEquals(expecteds, actuals); }
@Test public void testInt24write2() throws Exception { byte[] expecteds = { (byte) 0x0f, (byte) 0x35, (byte) 0xa2 }; byte[] actuals = CustomHeader.int24write(996770); assertArrayEquals(expecteds, actuals); }