BlockchainPersistenceUnit extends AbstractPersistenceUnit<K, V> { @Override public void put(byte[] key, byte[] val) { Util.check(key!=null, "key!=null"); Util.check(val!=null, "val!=null"); database.put(key, val); } BlockchainPersistenceUnit(String databasePath, Class<V> clazz); @Override void put(byte[] key, byte[] val); @Override byte[] get(byte[] key);  }
@Test(expected = IllegalArgumentException.class) public void testBlockchainPersistenceUnitConstructorWithNullDatabasePathShouldThrowException() throws IOException { blockchainPersistenceUnit.put(null, new byte[3]); }
@Test(expected = IllegalArgumentException.class) public void testBlockchainPersistenceUnitWithNullPathShouldThrowException() throws IOException { blockchainPersistenceUnit.put(null, new byte[3]); }