CharSequenceNodeLeafNullValue implements Node { @Override public Character getIncomingEdgeFirstCharacter() { return incomingEdgeCharSequence.charAt(0); } CharSequenceNodeLeafNullValue(CharSequence edgeCharSequence); @Override CharSequence getIncomingEdge(); @Override Character getIncomingEdgeFirstCharacter(); @Override Object getValue(); @Override Node getOutgoingEdge(Character edgeFirstCharacter); @Override void updateOutgoingEdge(Node childNode); @Override List<Node> getOutgoingEdges(); @Override String toString();  }
@Test public void testGetIncomingEdgeFirstCharacter() { Node node = new CharSequenceNodeLeafNullValue("FOO"); Assert.assertEquals(Character.valueOf('F'), node.getIncomingEdgeFirstCharacter()); }