assertThat(entityFromTargetName2, is(rpo2));
}
@Test
public void testEntityFromTargetNameAnyZone() {
Entity player = new Entity() {};
Entity entityFromTargetName = EntityHelper.entityFromTargetNameAnyZone("1", player);
assertThat(entityFromTargetName, not(notNullValue()));
int idRPO1 = 1;
int idRPO2 = 2;
StendhalRPZone zone = new StendhalRPZone(TEST_ENTITY_HELPER);
Entity rpo1 = new Entity() {};
rpo1.setID(new RPObject.ID(idRPO1, zone.getID()));
zone.add(rpo1);
RPObject rpo2 = new Entity() {};
rpo2.setID(new RPObject.ID(idRPO2, zone.getID()));
zone.add(rpo2);
rpo1.addSlot("test");
rpo1.getSlot("test").add(rpo2);
Entity entityFromTargetName2 = EntityHelper.entityFromTargetNameAnyZone("#2", rpo1);
assertThat(entityFromTargetName2, is(rpo2));
}