SelectImpl extends BaseSqlPart implements Select { @NotNull @Override public SelectFrom from(@NotNull final String tableName) { return new SelectFromImpl(tableName, this); } SelectImpl(@NotNull final String... columns); @NotNull @Override SelectFrom from(@NotNull final String tableName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void from_returnsNotNullValue() { SelectImpl select = new SelectImpl(); SelectFrom result = select.from("my_table"); assertThat(result, is(notNullValue())); }