ArithmeticFilter extends LogicalFilter { protected Object getAttributeValue(Object object) { return getFieldValue(attributeName, object); } ArithmeticFilter(final String attributeName, final Object value); String getAttributeName();  }
@Test public void getAttributeValue() { arithmeticFilter = spy(new GTFilter("x", new Object())); int actualValue = (Integer) arithmeticFilter.getAttributeValue(new Runnable() { @SuppressWarnings("unused") int x = 10; public void run() { } }); assertEquals(10, actualValue); }