CheckedDatastoreTransaction extends CheckedDatastoreReaderWriter { boolean isActive() { return tx.isActive(); } CheckedDatastoreTransaction(CheckedDatastore datastore, Transaction tx);   }
@Test @Parameters({"true", "false"}) public void isActive(boolean active) { when(transaction.isActive()).thenReturn(active); assertThat(sut.isActive(), is(active)); verify(transaction).isActive(); }