assertThat(spell.getMinimumLevel(),is(Integer.valueOf(0)));
assertThat(spell.getRange(),is(Integer.valueOf(10)));
assertThat(spell.getRate(),is(Integer.valueOf(1)));
assertThat(spell.getRegen(),is(Integer.valueOf(100)));
SingletonRepository.getEntityManager().addSpell(spell);
Spell entity = SingletonRepository.getEntityManager().getSpell("heal");
assertThat(entity, notNullValue());
assertThat(entity.getName(), is("heal"));
assertThat(entity.getNature(), is(Nature.LIGHT));
assertThat(entity.getAmount(),is(Integer.valueOf(100)));
assertThat(entity.getAtk(),is(Integer.valueOf(0)));
assertThat(entity.getCooldown(),is(Integer.valueOf(3)));
assertThat(entity.getDef(),is(Integer.valueOf(0)));
assertThat(entity.getLifesteal(),is(Double.valueOf(0.5)));
assertThat(entity.getMana(),is(Integer.valueOf(5)));
assertThat(entity.getMinimumLevel(),is(Integer.valueOf(0)));
assertThat(entity.getRange(),is(Integer.valueOf(10)));
assertThat(entity.getRate(),is(Integer.valueOf(1)));
assertThat(entity.getRegen(),is(Integer.valueOf(100)));
assertThat(entity.getClass().getName(), is("games.stendhal.server.entity.spell.HealingSpell"));
entity.setID(new ID(1, "some_zone"));
RPObject object = new SpellTransformer().transform(entity);
assertThat(object, is((RPObject)entity));
}