FileSetInfo { public static FileSetInfo fromJson(byte[] json) throws Exception { return OBJECT_MAPPER.readValue(json, FileSetInfo.class); } 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 testJsonParseForValid() throws Exception { assertEquals(FILE_SET_INFO, FileSetInfo.fromJson(FILE_SET_INFO_JSON.getBytes())); }