EnumNode extends LeafNode<ENUM> { public EnumNode() { } EnumNode();  EnumNode(boolean b); @Override String toString(); @Override String getValue();  }
@Test public void testEnumNode() { MyNode n = new MyNode(); assertNull(n.getValue()); assertThat(n.toString(), is("(null)")); assertTrue(n.doSetValue("ONE")); assertThat(n.getValue(), is("ONE")); assertThat(n.toString(), is("ONE")); assertFalse(n.doSetValue("THREE")); }