@Test
public void translate_NativeExpression_String() {

    String query = "some SQL query";
    NativeExpression e = new NativeExpression(String.class, query);
    Criterion expected = Restrictions.sqlRestriction("(" + query + ")");
    Criterion actual = translator.translate(e, Void.class);
    assertEquals(expected.toString(), actual.toString());
    assertEquivalent(expected, actual);
}