IdScoredDocument implements ScoredDocument<IdScoredDocument> { @Override public int compareTo( @NotNull final IdScoredDocument o) { throw new UnsupportedOperationException("Comparing is not supported"); } IdScoredDocument(
            @NotNull
            final Database database,
            final int id); @NotNull @Override Database getDatabase(); @Override int getDocument(); @Override int compareTo(
            @NotNull
            final IdScoredDocument o);  }
@Test(expected = UnsupportedOperationException.class) public void unsupportedCompare() { final IdScoredDocument document = new IdScoredDocument(db, 0); document.compareTo(document); }