NSRange range = new NSRange(2,3);
assertEquals(3, range.length());
}
public void testEqualsObject() {
NSRange range = new NSRange(2,3);
NSRange otherRange = new NSRange(2, 3);
assertTrue(range.equals(otherRange));
otherRange = new NSRange(3, 3);
assertFalse(range.equals(otherRange));
otherRange = null;
assertFalse(range.equals(otherRange));