### Question:
DateProperty extends BaseProperty<E> implements ComparableProperty<E> { @Override public DateProperty<E> alias(String alias) { return PropertyFactory.createDate(alias, this.getExpression(), this.getType()); } 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 alias() { DateProperty<LocalDate> aliased = property.alias("test"); assertEquals("test", aliased.getAlias()); assertEquals("test", aliased.getName()); assertEquals(exp("path"), aliased.getExpression()); }