FileSetInfo { public byte[] toJson() throws Exception { return OBJECT_MAPPER.writeValueAsBytes(this); } FileSetInfo();  FileSetInfo(String fileSetName,
                     String hdfsDir,
                     int numPartitions,
                     List<ServingInfo> oldServingInfoList,
                     Options options); byte[] toJson(); String toPrettyPrintingJson(); static FileSetInfo fromJson(byte[] json); @Override boolean equals(Object o); public String fileSetName; public int numVersionsToKeep; public ServingInfo servingInfo; public List<ServingInfo> oldServingInfoList; public boolean valid; public boolean deleted; }
@Test public void testJsonSerializeForValid() throws Exception { assertEquals(FILE_SET_INFO_JSON, new String(FILE_SET_INFO.toJson())); }