### Question:
ImmediateImpl extends BaseSqlPart implements Immediate { @Nullable @Override public SqlPart previous() { return mSqlPart; } ImmediateImpl(@NotNull final SqlPart sqlPart); @NotNull @Override Transaction transaction(); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }### Answer:
@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); ImmediateImpl immediate = new ImmediateImpl(sqlPart); SqlPart result = immediate.previous(); assertThat(result, is(sqlPart)); }