@Test
@Transactional
public void deleteLockedTemplate() {

	WordTemplate<?> template = lockedTemplate();
	try {
		repository.delete(template);
		fail("Exception expected. Locked templates must not be deleted");
	} catch (LockingException e) {
		assertTrue(isVersionIncontext(template));
	}
}