--- /dev/null
+package org.simantics.modeling.tests.commands;
+
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.testing.base.AllowedThrowable;
+import org.simantics.db.testing.common.WriteCommand;
+import org.simantics.modeling.tests.cases.ModelingCommandSequenceTest;
+
+
+public class FailingWrite extends WriteCommand<ModelingCommandSequenceTest> {
+
+ class AllowedError extends AssertionError implements AllowedThrowable {
+
+ private static final long serialVersionUID = -2278331008287437312L;
+
+ }
+
+ @Override
+ protected void run(WriteGraph graph, ModelingCommandSequenceTest environment) throws DatabaseException {
+ throw new AllowedError();
+ }
+
+}
\ No newline at end of file