ReplacementData { public static ReplacementData of(Method testMethod, int testIndex, List<Object> arguments) { return new ReplacementData(testMethod, testIndex, arguments); } private  ReplacementData(Method testMethod, int testIndex, List<Object> arguments); static ReplacementData of(Method testMethod, int testIndex, List<Object> arguments); Method getTestMethod(); int getTestIndex(); List<Object> getArguments(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testOfShouldThrowNullPointerExceptionIfTestMethodIsNull() { expectedException.expect(NullPointerException.class); expectedException.expectMessage("'testMethod' must not be null"); ReplacementData.of(null, 0, new ArrayList<Object>()); }
@Test public void testOfShouldThrowNullPointerExceptionIfArgumentsAreNull() { expectedException.expect(NullPointerException.class); expectedException.expectMessage("'arguments' must not be null"); ReplacementData.of(Methods.anyMethod(), 1, null); }