ToImpl extends BaseSqlPart implements To { @NotNull @Override public FinishedStatement savePoint(@NotNull final String savePointName) { return new SavePointImpl(savePointName, this); } ToImpl(@NotNull final SqlPart previous); @NotNull @Override FinishedStatement savePoint(@NotNull final String savePointName); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }
@Test public void savepoint_returnsNotNull() { ToImpl to = new ToImpl(mock(SqlPart.class)); FinishedStatement result = to.savePoint("savepoint"); assertThat(result, is(notNullValue())); }