}
@Test
@DirtiesContext
public void testLoadSagaOfDifferentTypesWithSameAssociationValue_SagaDeleted() {
StubSaga testSaga = new StubSaga("test1");
MyOtherTestSaga otherTestSaga = new MyOtherTestSaga("test2");
repository.add(testSaga);
repository.add(otherTestSaga);
testSaga.registerAssociationValue(new AssociationValue("key", "value"));
otherTestSaga.registerAssociationValue(new AssociationValue("key", "value"));
testSaga.end();
repository.commit(testSaga);
entityManager.flush();
entityManager.clear();
Set<String> actual = repository.find(StubSaga.class, new AssociationValue("key", "value"));
assertTrue("Didn't expect any sagas", actual.isEmpty());