String name = "my test key " + System.currentTimeMillis();
Repository.SMKey key = new Repository.SMKey();
key.setName(name);
PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
broker.beginTransaction();
broker.store(key);
broker.commitTransaction();
assertEquals("Value was not store: " + key, name, key.getName());
assertNotNull(MESSAGE + key, key.getIntegerKey());
assertTrue(MESSAGE + key, (key.getIntKey() != 0));
assertNotNull(MESSAGE + key, key.getLongKey());