### Question:
VirtuosoTransaction implements RDFBeanTransaction { @Override public void setRollbackOnly() { rollbackOnly = true; } VirtuosoTransaction(Connection connection, boolean readOnly, int txTimeout, int isolationLevel); @Override void commit(); @Override boolean isActive(); @Override boolean isRollbackOnly(); @Override void prepare(); @Override void rollback(); @Override void setRollbackOnly();  }### Answer:
@Test(expected = RepositoryException.class) public void SetRollbackOnly() { tx.setRollbackOnly(); tx.commit(); }