InternalSearch extends BusinessObject { public InternalSearch setKeyword(String keyword) { this.keyword = keyword; return this; } InternalSearch(Tracker tracker); String getKeyword(); int getResultScreenNumber(); int getResultPosition(); InternalSearch setKeyword(String keyword); InternalSearch setResultScreenNumber(int resultScreenNumber); InternalSearch setResultPosition(int resultPosition);  }
@Test public void setParamsTouchTest() { internalSearch.setKeyword("se)a..rù c^h").setResultScreenNumber(3).setResultPosition(5).setParams(); assertEquals(3, buffer.getVolatileParams().size()); assertEquals(0, buffer.getPersistentParams().size()); assertEquals(1, buffer.getVolatileParams().get("mc").getValues().size()); assertEquals("se)a..rù c^h", buffer.getVolatileParams().get("mc").getValues().get(0).execute()); assertEquals(1, buffer.getVolatileParams().get("np").getValues().size()); assertEquals("3", buffer.getVolatileParams().get("np").getValues().get(0).execute()); assertEquals(1, buffer.getVolatileParams().get("mcrg").getValues().size()); assertEquals("5", buffer.getVolatileParams().get("mcrg").getValues().get(0).execute()); }