### Question:
HttpResumableInfo { public boolean isCompatible(final HttpResumableInfo resumableInfo) { return resumableInfo.getChunkSize() == getChunkSize() && resumableInfo.getTotalSize() == getTotalSize() && resumableInfo.getIdentifier().equals(getIdentifier()) && resumableInfo.getTotalChunks() == getTotalChunks() && resumableInfo.getChunkNumber() <= getTotalChunks(); } HttpResumableInfo(final int chunkNumber, final int chunkSize,
                           final long totalSize, final String identifier,
                           final String filename, final String relativePath); String getFilename(); HttpResumableInfo setFilename(final String filename); String getRelativePath(); HttpResumableInfo setRelativePath(final String relativePath); boolean isCompatible(final HttpResumableInfo resumableInfo); int getChunkSize(); HttpResumableInfo setChunkSize(final int chunkSize); long getTotalSize(); HttpResumableInfo setTotalSize(final long totalSize); String getIdentifier(); int getTotalChunks(); int getChunkNumber(); HttpResumableInfo setChunkNumber(final int chunkNumber); HttpResumableInfo setTotalChunks(final int totalChunks); HttpResumableInfo setIdentifier(final String identifier); @Override String toString();  }### Answer:
@Test public void testIsCompatible() throws Exception { HttpResumableInfo resumableInfo2 = new HttpResumableInfo(chunkNumber, chunkSize, totalSize, identifier, filename, relativePath); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setChunkNumber(chunkNumber + 1); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setChunkNumber(Integer.MAX_VALUE); assertFalse(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setChunkNumber(chunkNumber); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setTotalSize(Integer.MAX_VALUE); assertFalse(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setTotalSize(totalSize); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setChunkSize(Integer.MAX_VALUE); assertFalse(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setChunkSize(chunkSize); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setTotalChunks(Integer.MAX_VALUE); assertFalse(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setTotalChunks(toalChunk); assertTrue(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setIdentifier(identifier + identifier); assertFalse(resumableInfo.isCompatible(resumableInfo2)); resumableInfo2.setIdentifier(identifier); assertTrue(resumableInfo.isCompatible(resumableInfo2)); }