### Question:
TransferRequestJsonPacket extends JsonPacket { public String getFileInformation() { return fileInformation; }  boolean isAdditionalDelay(); void setAdditionalDelay(final boolean isAdditionalDelay); long getDelay(); void setDelay(final long delay); Date getStart(); void setStart(final Date start); String getRequested(); void setRequested(final String requested); String getRulename(); void setRulename(final String rulename); int getMode(); void setMode(final int mode); String getFilename(); void setFilename(final String filename); int getBlocksize(); void setBlocksize(final int blocksize); int getRank(); void setRank(final int rank); long getSpecialId(); void setSpecialId(final long specialId); byte getValidate(); boolean isToValidate(); void setValidate(final byte validate); void validate(); long getOriginalSize(); void setOriginalSize(final long originalSize); String getFileInformation(); void setFileInformation(String fileInformation); String getSeparator(); void setSeparator(final String separator); @JsonIgnore void setFromDbTaskRunner(final DbTaskRunner runner); @Override void setRequestUserPacket();  }### Answer:
@Test public void testFileInformationShouldBeDeserialized() { System.out.println("in should be deserialized"); try { final String json = "{\"fileInformation\": \"foo\", \"@class\": \"org.waarp.openr66.protocol.localhandler.packet.json.TransferRequestJsonPacket\"}"; final TransferRequestJsonPacket res = new ObjectMapper().readValue(json, TransferRequestJsonPacket.class); assertEquals("fileInformation should be deserialized", "foo", res.getFileInformation()); } catch (final Exception e) { fail("Got unexpected exception" + e); } }
@Test public void testFileInformationShouldNotBeNullAfterDeserialization() { System.out.println("in should not be null"); try { final String json = "{\"@class\": \"org.waarp.openr66.protocol.localhandler.packet.json.TransferRequestJsonPacket\"}"; final TransferRequestJsonPacket res = new ObjectMapper().readValue(json, TransferRequestJsonPacket.class); assertEquals("fileInformation should not be null", "", res.getFileInformation()); } catch (final Exception e) { fail("Got unexpected exception" + e); } }