### Question:
AllOrNoneValueSet implements ValueSet { static AllOrNoneValueSet none(ArrowType type) { return new AllOrNoneValueSet(type, false, false); } @JsonCreator  AllOrNoneValueSet(@JsonProperty("type") ArrowType type,
            @JsonProperty("all") boolean all,
            @JsonProperty("nullAllowed") boolean nullAllowed); @Override @JsonProperty("nullAllowed") boolean isNullAllowed(); @Override @JsonProperty ArrowType getType(); @Override boolean isNone(); @Override @JsonProperty boolean isAll(); @Override boolean isSingleValue(); @Override Object getSingleValue(); @Override boolean containsValue(Marker value); @Override boolean containsValue(Object value); @Override ValueSet intersect(BlockAllocator allocator, ValueSet other); @Override ValueSet union(BlockAllocator allocator, ValueSet other); @Override ValueSet complement(BlockAllocator allocator); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override void close();  }### Answer:
@Test public void testNone() throws Exception { AllOrNoneValueSet valueSet = AllOrNoneValueSet.none(Types.MinorType.INT.getType()); assertEquals(valueSet.getType(), Types.MinorType.INT.getType()); assertTrue(valueSet.isNone()); assertFalse(valueSet.isAll()); assertFalse(valueSet.isSingleValue()); assertFalse(valueSet.containsValue(Marker.exactly(allocator, Types.MinorType.INT.getType(), 0))); try { valueSet.getSingleValue(); fail(); } catch (Exception ignored) { } }