@Test
public void testDoFilterWithUserNameInUri() throws Exception {

  // Given
  expect(userRelatedRequest.getRequestURI()).andReturn("/test/users/testUserName/test1").anyTimes();
  // filterChain should be invoked with the same req and resp as the OverrideUserName filter doesn't change these
  filterChain.doFilter(same(userRelatedRequest), same(response));
  expectLastCall();
  replayAll();
  // When
  filter.doFilter(userRelatedRequest, response, filterChain);
  // Then
  verifyAll();
}