Q:

JUnit parameter in @Rule @Before and @After

I need an advice on how the following snippet can be implemented in all test methods.
@Test 
public void testCatalogItemUpdate() {
    String correlationId = getCorrelation();
    try {
        parallel().actions( 
         //use correlationId
         //invoke test scenario
         //assert results
    );

    } finally {
        print(correlationId);
    }
}

I read about @Rule and @Before and @After annotations.

A:

I can not comment as i don't have enough points so i tried to give the solution with my understanding. So please clarify one thing that you added the comments with in parameter section like below 
parallel().action(/*test scenario and assert results are here*/);

Any specific reason for it?
Here is the code snippet. Please check if it helps
private String correlationId;
@Before
public void beforeEachTest(){
    correlationId = getCorrelation();
    parallel().actions(correlationId);
}

@Test
public void testCatalogItemUpdate(){
    //Execute test scenario using correlationId
    //Assert results
}

@After
public void afterEachTest(){
    print(correlationId);
}

