@Test
@Parameters({"true", "false"})

public void isActive(boolean active) {
  when(transaction.isActive()).thenReturn(active);
  assertThat(sut.isActive(), is(active));
  verify(transaction).isActive();
}