@Test
    public void testGetNetIncome4() {
        MyHashTable<String, Integer> sales = new MyHashTable<>(10, 10);
        sales.put("A", 123);
        sales.put("B", 234);
        sales.put("C", 345);
        sales.put("D", 456);
        sales.put("E", 567);
        sales.put("F", 678);
        sales.put("G", 789);
        sales.put("H", 890);
        sales.put("I", 901);
        sales.put("J", 12);
        MyHashTable<String, String> sponsors = new MyHashTable<>(10, 10);
        sponsors.put("A", "");
        sponsors.put("B", "A");
        sponsors.put("C", "A");
        sponsors.put("D", "A");
        sponsors.put("E", "B");
        sponsors.put("F", "B");
        sponsors.put("G", "C");
        sponsors.put("H", "E");
        sponsors.put("I", "E");
        sponsors.put("J", "B");
        MLMRevenueTracker tracker = new MLMRevenueTracker();
        
        assertEquals(4, tracker.getNetIncome("J", sales, sponsors), 1);
        assertEquals(360, tracker.getNetIncome("I", sales, sponsors), 1);
        assertEquals(356, tracker.getNetIncome("H", sales, sponsors), 1);
        assertEquals(315, tracker.getNetIncome("G", sales, sponsors), 1);
        assertEquals(271, tracker.getNetIncome("F", sales, sponsors), 1);
        assertEquals(387, tracker.getNetIncome("E", sales, sponsors), 1);
        assertEquals(182, tracker.getNetIncome("D", sales, sponsors), 1);
        assertEquals(208, tracker.getNetIncome("C", sales, sponsors), 1);
        assertEquals(221, tracker.getNetIncome("B", sales, sponsors), 1);
        assert((tracker.getNetIncome("A", sales, sponsors) == 184)
                || (tracker.getNetIncome("A", sales, sponsors) == 185)
                || (tracker.getNetIncome("A", sales, sponsors) == 186)
                || (tracker.getNetIncome("A", sales, sponsors) == 159)
                || (tracker.getNetIncome("A", sales, sponsors) == 160)
                || (tracker.getNetIncome("A", sales, sponsors) == 161));
    }