def METHOD_NAME(self):
    """Test max score is correct when groups are regexp-defined."""
    s1, s2, s3 = 10.5, 30.5, 59
    parameters = [[s1, "1_*", 10], [s2, "2_*", 20], [s3, "3_*", 30]]
    header = ["Subtask 1 (10.5)", "Subtask 2 (30.5)", "Subtask 3 (59)"]
    # Only group 1_* is public.
    public_testcases = dict(self._public_testcases)
    self.assertEqual(
        GroupThreshold(parameters, public_testcases).max_scores(),
        (s1 + s2 + s3, s1, header))
    # All groups are public
    for testcase in public_testcases.keys():
        public_testcases[testcase] = True
    self.assertEqual(
        GroupThreshold(parameters, public_testcases).max_scores(),
        (s1 + s2 + s3, s1 + s2 + s3, header))
    # No groups are public
    for testcase in public_testcases.keys():
        public_testcases[testcase] = False
    self.assertEqual(
        GroupThreshold(parameters, public_testcases).max_scores(),
        (s1 + s2 + s3, 0, header))