@Test
@Transactional
public void locking() {

	WordTemplate<?> template = unlockedTemplate();
	User lockingUser = new User("locking", "Locking User");
	Template<?> locked = repository.lockForEdit(template, lockingUser);
	assertEquals(lockingUser, locked.getLockingUser());
	assertTrue(isVersionIncontext(locked));
}