@Test
public void testSetContextShouldSetAllContextFields() {

    // Given:
    Method method = anyMethod();
    int index = 0;
    Object[] parameters = new Object[] { 1, 2, 3 };
    BasePlaceholder underTest = new TestPlaceholder("%s", "###");
    underTest.method = null;
    underTest.idx = Integer.MAX_VALUE;
    underTest.parameters = null;
    // When:
    underTest.setContext(method, index, parameters);
    // Then:
    assertThat(underTest.method).isEqualTo(method);
    assertThat(underTest.idx).isEqualTo(index);
    assertThat(underTest.parameters).isNotSameAs(parameters).isEqualTo(parameters);
}