Mult { public String subscript(int position) { if (position > multiple.size()) return ""; if (position < 0) return ""; return (String) multiple.get(position); }  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 testSubscript() { m.put("foo", "fred"); m.put("bar", "barney"); m.put("baz", "wilma"); assertEquals("foo", m.subscript(0)); assertEquals("bar", m.subscript(1)); assertEquals("baz", m.subscript(2)); assertEquals("", m.subscript(-1)); }