HuffmanNode implements Comparable<HuffmanNode> { protected int getLeafType() { return _leafType; } protected  HuffmanNode(final long value, final int frequency, final int leafType); protected  HuffmanNode(final HuffmanNode left, final HuffmanNode right); int hashCode(); boolean equals(final Object obj); @Override int compareTo(final HuffmanNode node);  }
@Test(groups={"node"}) public void testGetType() throws Exception { long value = 1; int freq = 2; int type = HuffmanNode.LEAF_32; HuffmanNode node = new HuffmanNode(value, freq, type); assertEquals(node.getLeafType(), type); }