@Test
	public void testPreexistingCounter() {
		Counter counter = new Counter("tupleCounter", 12L);
		repo.save(counter);
		MessageCounterHandler handler = new MessageCounterHandler(repo, "'tupleCounter'");
		Message<String> message = MessageBuilder.withPayload("Hi").build();
		handler.process(message);
		counter = repo.findOne("tupleCounter");
		assertThat(counter.getValue(), equalTo(13L));

	}
@author Mark Pollack
@author Gary Russell
@since 1.0
spring-xd-analytics/src/test/java/org/springframework/xd/analytics/metrics/integration/MessageCounterHandlerTests.java