}
@Test(expected=PermissionDeniedException.class)
public void insert_atEnd() throws PermissionDeniedException {
final SecurityManager mockSecurityManager = EasyMock.createMock(SecurityManager.class);
final Database mockDatabase = EasyMock.createMock(Database.class);
final Subject mockCurrentSubject = EasyMock.createMock(Subject.class);
//expect(mockSecurityManager.getDatabase()).andReturn(mockDatabase).times(2);
//expect(mockDatabase.getSubject()).andReturn(mockCurrentSubject).times(2);
//expect(mockCurrentSubject.hasDbaRole()).andReturn(true).times(2);