@Test public void map_givenParameters() throws Exception { Exception thrown = null; try { Map.map(f, a, b, n); } catch (Exception e) { thrown = e; } if (thrown != null) Assert.assertEquals("\na: " + Arrays.toString(a) + "\nb: " + Arrays.toString(b) + "\nn: " + n, expected.toString(), thrown.toString()); else { Assert.assertTrue("you shall throw an Exception", expected instanceof Object[]); Assert.assertArrayEquals("actual: " + Arrays.toString(b) + "\n", (Object[]) expected, b); } }
public static <T, R> void map(Fun<T, R> f, T[] a, R[] b, int n) { }
Map { public static <T, R> void map(Fun<T, R> f, T[] a, R[] b, int n) { } }
Map { public static <T, R> void map(Fun<T, R> f, T[] a, R[] b, int n) { }  }
Map { public static <T, R> void map(Fun<T, R> f, T[] a, R[] b, int n) { }  static void map(Fun<T, R> f, T[] a, R[] b, int n); }
Map { public static <T, R> void map(Fun<T, R> f, T[] a, R[] b, int n) { }  static void map(Fun<T, R> f, T[] a, R[] b, int n);  }