### Question:
TypePath { public int getStep(final int index) { return typePathContainer[typePathOffset + 2 * index + 1]; } TypePath(final byte[] typePathContainer, final int typePathOffset); int getLength(); int getStep(final int index); int getStepArgument(final int index); static TypePath fromString(final String typePath); @Override String toString(); static final int ARRAY_ELEMENT; static final int INNER_TYPE; static final int WILDCARD_BOUND; static final int TYPE_ARGUMENT; }### Answer:
@Test public void testGetStep() { TypePath typePath = TypePath.fromString("[.[*7"); assertEquals(TypePath.ARRAY_ELEMENT, typePath.getStep(0)); assertEquals(TypePath.INNER_TYPE, typePath.getStep(1)); assertEquals(TypePath.WILDCARD_BOUND, typePath.getStep(3)); assertEquals(TypePath.TYPE_ARGUMENT, typePath.getStep(4)); assertEquals(7, typePath.getStepArgument(4)); }