OrderByImpl extends BaseFinishedSelectStatement implements OrderBy { @Override public Limit limit(final long limit) { return new LimitImpl(limit, this); } OrderByImpl(@NotNull final String[] terms, @NotNull final SqlPart previous); @Override Limit limit(final long limit); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void limit_returnsNotNullValue() { OrderByImpl orderBy = new OrderByImpl(new String[] {"a"}, mock(SqlPart.class)); Limit result = orderBy.limit(5); assertThat(result, is(notNullValue())); }