	@Test
	public void shouldWriteItemWhenNoTransactionIsActive() throws Exception {


		IndexQueryBuilder builder = new IndexQueryBuilder();
		builder.withObject(dummyDocument);

		List<IndexQuery> items = asList(builder.build());

		writer.write(items);

		verify(elasticsearchOperations).index(items.iterator().next());
	}