@Test
public void shouldReturnWantedUrlWithParamArgs() {

String a = "test";
int b = 3;
when(router.urlFor(TestController.class, method2params, new Object[]{a, b})).thenReturn("/expectedURL");
//${linkTo[TestController].method['test'][3]}
String uri = handler.get(TestController.class).get("method").get(a).get(b).toString();
assertThat(uri, is("/path/expectedURL"));
}