@Test
public void newTransaction() throws DatastoreIOException {

  when(datastore.newTransaction()).thenReturn(transaction);
  assertThat(sut.newTransaction().tx, is(transaction));
  verify(datastore).newTransaction();
}