@Before
	public void resetDependencies() {
		maybeReset(streamDeployer);
		maybeReset(jobDeployer);
		maybeReset(jobService);
		resetOrDelete(containerRepository);
		resetOrDelete(moduleMetadataRepository);

		resetOrDelete(streamDefinitionRepository);
		resetOrDelete(jobDefinitionRepository);
		resetOrDelete(streamRepository);
		resetOrDelete(jobRepository);
		resetOrDelete(counterRepository);
		resetOrDelete(fieldValueCounterRepository);
		resetOrDelete(gaugeRepository);
		resetOrDelete(richGaugeRepository);
	}
Base class for Controller layer tests. Takes care of resetting the mocked (be them mockito mocks or <i>e.g.</i> in
memory) dependencies before each test.

@author Eric Bottard
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/AbstractControllerIntegrationTest.java