@KOTest public void loadAndParseArrayInPeopleWithHeaders() throws InterruptedException { if (js == null) { url = Utils.prepareURL( JSONTest.class, "{'info':[{'firstName': '$0$1$2$3$4', 'sex': 'FEMALE'}]}", "application/json", "http.header.Easy", "http.header.H-a!r*d^e.r", "http.header.Repeat-ed", "http.header.Repeat*ed", "http.header.Same-URL" ); js = Models.bind(new JSONik(), newContext()); js.applyBindings(); js.fetchPeopleWithHeaders(url, "easy", "harder", "rep"); } if (0 == js.getFetchedCount()) { throw new InterruptedException(); } assertEquals(js.getFetchedCount(), 1, "One person loaded: " + js.getFetchedCount()); Person p = js.getFetched(); assertNotNull(p, "We should get our person back: " + p); assertEquals("easyharderreprep" + url, p.getFirstName(), "Expecting header mess: " + p.getFirstName()); assertEquals(Sex.FEMALE, p.getSex(), "Expecting FEMALE: " + p.getSex()); }