Entity hasParentKeyPkEntity =
new Entity(HasOneToOneParentKeyPkJPA.class.getSimpleName(), pojoEntity.getKey());
hasParentKeyPkEntity.setProperty("str", "yag");
ds.put(hasParentKeyPkEntity);
Transaction txn = EasyMock.createMock(Transaction.class);
EasyMock.expect(txn.getId()).andReturn("1").times(2);
txn.commit();
EasyMock.expectLastCall();
EasyMock.replay(txn);
EasyMock.expect(mockDatastore.beginTransaction(EasyMock.isA(TransactionOptions.class))).andReturn(txn);
// the only get we're going to perform is for the pojo
EasyMock.expect(mockDatastore.get(txn, pojoEntity.getKey())).andReturn(pojoEntity);