Mult { public int position(String subscript) { return multiple.indexOf(subscript); }  int getCount(); String order(String startSubscript, int direction); String get(String subscript); void put(String subscript, String value); void add(Map map); void add(List list); void add(JsonNode jsonNode); int position(String subscript); String subscript(int position); String getFirst(); String getLast(); Map<String, Object> toMap(); @JsonValue JsonNode toJsonNode(); @Override boolean equals(Object o); @Override int hashCode(); static Mult create(Map map); static Mult create(List list); static Mult create(JsonNode json);  }
@Test public void testPosition() { m.put("foo", "fred"); m.put("bar", "barney"); m.put("baz", "wilma"); assertEquals(0, m.position("foo")); assertEquals(1, m.position("bar")); assertEquals(2, m.position("baz")); assertEquals(-1, m.position("taz")); }