public List<ServiceInstance> findAllInstancesInNotRunningState() {
        return jdbcRepository.getDslContextWrapper().transactionResult(
            configuration -> findAllInstancesInNotRunningState(configuration, false)
        );
    }
@Test
    protected void shouldFindAllInstancesInNotRunningState() {
        // Given
        AbstractJdbcServiceInstanceRepositoryTest.Fixtures.all().forEach(repository::save);

        // When
        List<ServiceInstance> results = repository.findAllInstancesInNotRunningState();

        // Then
        assertEquals(AbstractJdbcServiceInstanceRepositoryTest.Fixtures.allInNotRunningState().size(), results.size());
        assertThat(results, Matchers.containsInAnyOrder(AbstractJdbcServiceInstanceRepositoryTest.Fixtures.allInNotRunningState().toArray()));
    }