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