### Question:
ReaperImpl implements ReaperQuery { public void setConnection(C connection) { Reject.ifNull(connection); this.connection = connection; } @Inject  ReaperImpl(@DataLayer(ConnectionType.CTS_REAPER) QueryFactory queryFactory, CoreTokenConfig config); void setConnection(C connection); @Override Collection<String> nextPage(); @Override void close();  }### Answer:
@Test (expectedExceptions = NullPointerException.class) public void shouldPreventNullConnection() { impl.setConnection(null); }