@Test
public void testOfShouldThrowNullPointerExceptionIfTestMethodIsNull() {

    // Given:
    expectedException.expect(NullPointerException.class);
    expectedException.expectMessage("'testMethod' must not be null");
    // When:
    ReplacementData.of(null, 0, new ArrayList<Object>());
    // Then: expect exception
}