### Question:
SesameConnection implements RDFConnection { @Override public void update(Collection<STMT> removedStatements, Collection<STMT> addedStatements) { if (!readonlyTnx) { try { if (localTxn == null) { connection.begin(); } if (removedStatements != null && !removedStatements.isEmpty()) { connection.remove(convert(removedStatements)); } if (addedStatements != null && !addedStatements.isEmpty()) { connection.add(convert(addedStatements)); } if (localTxn == null) { connection.commit(); } } catch (StoreException e) { try { connection.rollback(); } catch (StoreException e1) { throw new RepositoryException(e1); } throw new RepositoryException(e); } } } SesameConnection(SesameRepository repository, RepositoryConnection connection, InferenceOptions inference); @Override RDFBeanTransaction beginTransaction(boolean readOnly, int txTimeout, int isolationLevel); void cleanUpAfterCommit(); void cleanUpAfterRollback(); @Override void clear(); @Override void close(); @Override BID createBNode(); @SuppressWarnings("unchecked") @Override Q createUpdate(UpdateLanguage<D, Q> updateLanguage, D definition); @SuppressWarnings("unchecked") @Override Q createQuery(QueryLanguage<D, Q> queryLanguage, D definition); @Override CloseableIterator<STMT> findStatements(ID sub, UID pre, NODE obj, UID con, boolean includeInferred); @Override boolean exists(@Nullable ID sub, @Nullable UID pre, @Nullable NODE obj, @Nullable UID con,
            boolean includeInferred); RepositoryConnection getConnection(); Dialect<Value, Resource, BNode, URI, Literal, Statement> getDialect(); @Override long getNextLocalId(); RDFBeanTransaction getTransaction(); @Override void remove(ID subject, UID predicate, NODE object, UID context); @Override void update(Collection<STMT> removedStatements, Collection<STMT> addedStatements); @Override QueryOptions getQueryOptions(); @Override InferenceOptions getInferenceOptions();  }### Answer:
@Test public void Update_with_nulls() { conn.update(Collections.<STMT> emptySet(), null); conn.update(null, Collections.<STMT> emptySet()); conn.update(null, null); }