FieldSearchParam implements SearchParam { public String getQuery() { return fieldName + ":" + value + ""; } FieldSearchParam(String fieldName, String value); String getQuery(); Query getLuceneQuery(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testGetQuery_1() throws Exception { FieldSearchParam fixture = new FieldSearchParam("", ""); String result = fixture.getQuery(); assertEquals(":", result); }