FileObjectStore implements ObjectStore { static void error(String msg) { throw new RuntimeException("FileObjectStore: " + msg); } FileObjectStore(File rootDirectory, File quotaDirectory); @Override ObjectStoreConnection getConnection(boolean autoCommit, boolean readWrite); @Override void setOperationTimeout(int opTimeout); @Override void clearConnections();  }
@Test public void testError() { try { FileObjectStore.error("Not Found"); } catch (RuntimeException ex) { assertTrue(true); } }