Homework Help: Test Array Max (Lesson 43)

Hello,
I’m having trouble completing the homework for Lesson 43 (lambda expressions). I’m able to test correctly for empty and null arrays. However, I’m unsure what to test for other than those cases. I started putting random tests because I was really unsure what edge cases I was missing. Here’s my code:

public class TestArrayMax {
  public static void test(ArrayMax a) {
    try {
      int[] array = null;
      a.max(array);
      assert false;
    } catch (IllegalArgumentException e) {
      
    } catch (Exception e) {
      assert false;
    }
    try {
      int[] array = new int[0];
    } catch (IllegalArgumentException e) {
    } catch (Exception e) {
      assert false;
    }
    try {
      assert a.max(new int[] {-10, 10}) == 10;
      assert a.max(new int[] {0}) == 0;
      assert a.max(new int[] {0, 0, 0, 0}) == 0;
      assert a.max(new int[] {1, 1, 2, 1}) == 2;
      assert a.max(new int[] {3, 1, -10, 1, -2, 0}) == 3;
      assert a.max(new int[] {7, 7, 8, 8, 7}) == 8;
      assert a.max(new int[] {32, 32, 32, 32}) == 32;
      assert a.max(new int[] {-15, -32, -36, -18, -88, -12, -102}) == -12;
    } catch (Exception e) {
      assert false;
    }
  }
}