@Test
public void testGetExtraHiddenFields02() {

    // setup arguments
    TransactionTokenRequestDataValueProcessor processor = new TransactionTokenRequestDataValueProcessor();
    HttpServletRequest request = mock(HttpServletRequest.class);
    TransactionToken token = new TransactionToken("tokenName", "tokenkey", "tokenValue");
    // mock behavior
    when((TransactionToken) request.getAttribute(
            TransactionTokenInterceptor.NEXT_TOKEN_REQUEST_ATTRIBUTE_NAME))
                    .thenReturn(token);
    // run
    Map<String, String> result = processor.getExtraHiddenFields(request);
    // capture
    Map<String, String> expected = new HashMap<String, String>();
    expected.put("_TRANSACTION_TOKEN", token.getTokenString());
    // assert
    assertThat(result, is(expected));
}