public void restrict_on_related_entity() {
Sql sql = sqlProvider.get();
sql.select("*").from("COMUNS_RELATIONAL.OTHER").as("O").andLoadWith(loader);
Join _simple = sql.join("SIMPLE", "S").on("O.SIMPLE_ID = S.ID");
_simple.where("STRING").equalTo("BCD");
List<Other> result = sql.list();
List<String> strings = transform(result, Functions.toStringFunction());
assertThat(strings.size(), equalTo(1));
assertThat(strings.get(0), equalTo("Other{id=2, value=BCDCB}"));