### Question:
DateProperty extends BaseProperty<E> implements ComparableProperty<E> { public NumericProperty<Integer> hour() { return PropertyFactory.createNumeric(FunctionExpressionFactory.hourExp(getExpression()), Integer.class); } protected  DateProperty(String name, Expression expression, Class<E> type); NumericProperty<Integer> year(); NumericProperty<Integer> month(); NumericProperty<Integer> dayOfMonth(); NumericProperty<Integer> dayOfYear(); NumericProperty<Integer> hour(); NumericProperty<Integer> minute(); NumericProperty<Integer> second(); @Override DateProperty<E> alias(String alias); DateProperty<E> max(); DateProperty<E> min(); DateProperty<E> enclosing();  }### Answer:
@Test public void hour() { Expression exp = property.hour().getExpression(); assertEquals(exp("hour(path)"), exp); }