public void testNSArrayListOfQextendsENSRangeBoolean() {
List<String> list = Arrays.asList("abc", null, "def");
NSRange range = new NSRange(1, 2); // 1, 2
NSArray<String> array = new NSArray<String>(list, range, true);
assertEquals(1, array.size());
array = new NSArray<String>(list, new NSRange(1,2), true);
assertEquals(1, array.size());
assertEquals("def", array.objectAtIndex(0));
NSArray<String> array2 = new NSArray<String>(list, new NSRange(0, list.size()), true);
assertEquals(2, array2.size());
list = Arrays.asList("abc", "def", "ghi");
array = new NSArray<String>(list, new NSRange(0, list.size()), false);
assertEquals(3, array.size());
array = new NSArray<String>(list, null, false);
assertEquals(0, array.size());
}