DataProviderFrameworkMethod extends FrameworkMethod { @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + idx; result = prime * result + ((nameFormat == null) ? 0 : nameFormat.hashCode()); result = prime * result + Arrays.hashCode(parameters); return result; } DataProviderFrameworkMethod(Method method, int idx, Object[] parameters, String nameFormat);  DataProviderFrameworkMethod(Method method, int idx, Object[] parameters,
            String nameFormat, Class<? extends DataProviderTestNameFormatter> nameFormatter); @Override String getName(); @Override Object invokeExplosively(Object target, Object... params); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testHashCodeShouldBeEqualForEqualObjects() { final Object[] params1 = new Object[] { 4.2, 't', false }; final Object[] params2 = new Object[] { 4.2, 't', false }; DataProviderFrameworkMethod m1 = new DataProviderFrameworkMethod(method, 90, params1, "%p[90]"); DataProviderFrameworkMethod m2 = new DataProviderFrameworkMethod(method, 90, params2, "%p[90]"); int result = m1.hashCode(); assertThat(result).isEqualTo(m2.hashCode()); }