}
@DirtiesContext
@Test
public void testAddingAnInactiveSagaDoesntStoreIt() {
StubSaga testSaga = new StubSaga("test1");
testSaga.registerAssociationValue(new AssociationValue("key", "value"));
testSaga.end();
repository.add(testSaga);
entityManager.flush();
entityManager.clear();
Set<String> actual = repository.find(StubSaga.class, new AssociationValue("key", "value"));