@Test
@SuppressWarnings("deprecation")
public void TestCancelReservation03() throws IllegalArgumentException, IllegalAccessException {

    // setup parameters
    TransactionTokenInfo inTransactionToken = new TransactionTokenInfo("testTokenAttribute2", TransactionTokenType.IN);
    TransactionToken receivedToken = new TransactionToken("bbb");
    // setup up expected result
    ReserveCommand expectedCommand = ReserveCommand.CREATE_TOKEN;
    // run
    TransactionTokenContextImpl contextImpl = new TransactionTokenContextImpl(inTransactionToken, receivedToken);
    contextImpl.cancelReservation();
    // test
    Field field = ReflectionUtils.findField(
            TransactionTokenContextImpl.class, "defaultCommand");
    ReflectionUtils.makeAccessible(field);
    ReserveCommand resultCommand = (ReserveCommand) field.get(contextImpl);
    assertThat(resultCommand, is(expectedCommand));
}