@Before public void setUp() throws Exception { pam = new MockPAM(); tr = new BasicTranslator(SIZE, pam); ns = new NodeStructureImpl(); Node n = new NodeImpl(); n.setId(10); ns.addDefaultNode(n); n = new NodeImpl(); n.setId(20); ns.addDefaultNode(n); vector = new BitVector(SIZE); vector.set(10); vector.set(20); }
@Test public void testTranslateNodeStructure() { NodeStructure nss = tr.translate(vector); assert (nss.getNodes().equals(ns.getNodes())); }