@Test
public void clientRedirectingWillRedirectToTranslatedUrl() throws NoSuchMethodException, IOException {

final String url = "custom_url";
when(request.getContextPath()).thenReturn("/context");
when(router.urlFor(MyComponent.class, MyComponent.class.getDeclaredMethod("base"))).thenReturn(url);
logicResult.redirectTo(MyComponent.class).base();
verify(response).sendRedirect("/context" + url);
}