### Question:
SchemaVersionRange { public static SchemaVersionRange with(int earliest, int latest) { return new SchemaVersionRange(earliest, latest); } SchemaVersionRange(int earliest, int latest); boolean before(int version); boolean contains(int version); boolean after(int version); @Override String toString(); static SchemaVersionRange with(int earliest, int latest); static SchemaVersionRange parse(String versionStr); final int earliest; final int latest; }### Answer:
@Test(expected=Exception.class) public void testRangeIsNotCreatedFromInvalidVersions1() throws Exception { SchemaVersionRange.with(-1, 0); }
@Test(expected=Exception.class) public void testRangeIsNotCreatedFromInvalidVersions2() throws Exception { SchemaVersionRange.with(0, -1); }
@Test(expected=Exception.class) public void testRangeIsNotCreatedFromInvalidVersions3() throws Exception { SchemaVersionRange.with(2, 1); }