### Question:
ValueFilterHash extends AbstractValueFilter { public void setType(int type) { this.type = type; }  @Override ValueObject filterValue(ValueObject value); void setType(int type); void setAbs(boolean abs); static long cuidHash(String cuid);  }### Answer:
@Test public void testFilterValue_sha1() throws Exception { ValueFilterHash valueFilterHash = new ValueFilterHash(); valueFilterHash.setType(4); ValueObject vo = valueFilterHash.filter(ValueFactory.create("128.0.0.1")); assertEquals("9c678c09e0163cb9f0bdaf0363047ac5b549704e", vo.toString()); }