### Question:
TypePath { public int getLength() { return typePathContainer[typePathOffset]; } 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 testGetLength() { assertEquals(5, TypePath.fromString("[.[*0").getLength()); assertEquals(5, TypePath.fromString("[*0;*[").getLength()); assertEquals(1, TypePath.fromString("10;").getLength()); assertEquals(2, TypePath.fromString("1;0;").getLength()); }