Term implements Cloneable { public Term or(String term, Object value) { return or(term, TermType.eq, value); }  Term or(String term, Object value); Term and(String term, Object value); Term or(String term, String termType, Object value); Term and(String term, String termType, Object value); Term nest(); Term orNest(); Term nest(String term, Object value); Term orNest(String term, Object value); Term addTerm(Term term); void setColumn(String column); void setTermType(String termType); @Override @SneakyThrows Term clone();  }
@Test public void testOr() { Term term = new Term(); term.or("test", "1"); Assert.assertEquals(term.getTerms().get(0).getColumn(), "test"); Assert.assertEquals(term.getTerms().get(0).getValue(), "1"); Assert.assertEquals(term.getTerms().get(0).getType(), Term.Type.or); }