ObjectSpecification { @JsonIgnore public boolean hasPartChecksums() { int presentCount = 0; if (parts != null) { for (Part p : parts) { if (p.getSourceMd5() != null) { presentCount += 1; } if (presentCount < parts.size()) { log.warn("Some parts missing MD5 checksum (but other parts have one)"); } } } return (presentCount > 0); }  @JsonIgnore boolean hasPartChecksums();  }
@Test public void test() { URL url = this.getClass().getResource("/test.meta"); File testfile = new File(url.getFile()); try { val sut = MAPPER.readValue(testfile, ObjectSpecification.class); sut.hasPartChecksums(); System.out.println("test"); } catch (Exception e) { e.printStackTrace(); } }