Property { public CharSequence asDeclareParameter(int idx) { return shouldIgnoreThisProperty() ? null : generateDeclareParameter(idx); } protected  Property(String name, T value, String type); protected  Property(String jdoVariableName, String name, T value, String type); String getName(); T getValue(); String getType(); String getJdoVariableName(); boolean isForRelation(); CharSequence asFilter(int idx); CharSequence asDeclareParameter(int idx); Collection unwrap();  }
@Test public void shouldGenerateAppropriateDeclareParameter() throws Exception { assertEquals(expectedDeclareParameter(), getProperty().asDeclareParameter(getIdx())); }