### Question:
TypeEdge implements DecisionTreeEdge { @Override public boolean decide(final Object object) { return object == getType(); } TypeEdge(final Class<?> type); @Override boolean decide(final Object object); @Override String toString(); Class<?> getType(); @Override boolean equivalent(DecisionTreeEdge o);  }### Answer:
@Test public void testExactMatch() { TypeEdge fixedNode = new TypeEdge(FixedDose.class); assertTrue(fixedNode.decide(FixedDose.class)); assertFalse(fixedNode.decide(FlexibleDose.class)); TypeEdge flexNode = new TypeEdge(FlexibleDose.class); assertFalse(flexNode.decide(FixedDose.class)); assertTrue(flexNode.decide(FlexibleDose.class)); }