ImmutableSortOptionEntry implements SortOptionEntry { public static ImmutableSortOptionEntry asc(final CharSequence propertyPath) { return new ImmutableSortOptionEntry(propertyPath, SortOrder.ASC); } ImmutableSortOptionEntry(final CharSequence propertyPath, final SortOrder sortOrder); static ImmutableSortOptionEntry of(final CharSequence propertyPath, final SortOrder sortOrder); static ImmutableSortOptionEntry asc(final CharSequence propertyPath); static ImmutableSortOptionEntry desc(final CharSequence propertyPath); @Override JsonPointer getPropertyPath(); @Override SortOrder getOrder(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void tryToCreateAscendingEntryWithNullPath() { ImmutableSortOptionEntry.asc(null); }