### Question:
Range { public static Range newInstance(String s) { if (s == null) { throw new NullPointerException("Range argument cannot be null."); } Range range = new Range(); range.origRange = s; range.parseRange(s); return range; } private  Range(); static Range newInstance(String s); @Override String toString(); String toStringEx(); boolean contain(long n); boolean notContain(long n);  }### Answer:
@Test(expected=InvalidRangeException.class) public void testInvalid9() { Range.newInstance("[1.1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid10() { Range.newInstance("[1 .... 1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid11() { Range.newInstance("[10..1]"); }
@Test(expected=NullPointerException.class) public void testInvalid12() { Range.newInstance(null); }
@Test(expected=InvalidRangeException.class) public void testInvalid13() { Range.newInstance(""); }
@Test(expected=InvalidRangeException.class) public void testInvalid1() { Range.newInstance("a"); }
@Test(expected=InvalidRangeException.class) public void testInvalid2() { Range.newInstance("[1..]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid3() { Range.newInstance("[..1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid4() { Range.newInstance("[a..1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid5() { Range.newInstance("[2..1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid6() { Range.newInstance("[1..2}"); }
@Test(expected=InvalidRangeException.class) public void testInvalid7() { Range.newInstance("{1..1]"); }
@Test(expected=InvalidRangeException.class) public void testInvalid8() { Range.newInstance("(1...1)"); }