### Question:
SimpleStringFilter implements Filter { @Override public boolean appliesToProperty(Object propertyId) { return this.propertyId.equals(propertyId); } SimpleStringFilter(Object propertyId, String filterString,
            boolean ignoreCase, boolean onlyMatchPrefix); @Override boolean passesFilter(Object itemId, Item item); @Override boolean appliesToProperty(Object propertyId); @Override boolean equals(Object obj); @Override int hashCode(); Object getPropertyId(); String getFilterString(); boolean isIgnoreCase(); boolean isOnlyMatchPrefix();  }### Answer:
@Test public void testAppliesToProperty() { SimpleStringFilter filter = f(PROPERTY1, "ab", false, true); Assert.assertTrue(filter.appliesToProperty(PROPERTY1)); Assert.assertFalse(filter.appliesToProperty(PROPERTY2)); Assert.assertFalse(filter.appliesToProperty("other")); }
@Test public void testAppliesToProperty() { SimpleStringFilter filter = f(PROPERTY1, "ab", false, true); assertTrue(filter.appliesToProperty(PROPERTY1)); assertFalse(filter.appliesToProperty(PROPERTY2)); assertFalse(filter.appliesToProperty("other")); }