MapValue extends ValueAdapter { public MapValue( Map<String, Value> val ) { if ( val == null ) { throw new IllegalArgumentException( "Cannot construct MapValue from null" ); } this.val = val; } MapValue( Map<String, Value> val ); @Override boolean isEmpty(); @Override Map<String, Object> asObject(); @Override Map<String,Object> asMap(); @Override Map<String, T> asMap( Function<Value, T> mapFunction ); @Override int size(); @Override boolean containsKey( String key ); @Override Iterable<String> keys(); @Override Iterable<Value> values(); @Override Iterable<T> values( Function<Value, T> mapFunction ); @Override Value get( String key ); @Override String toString(); @Override Type type(); @Override boolean equals( Object o ); @Override int hashCode();  }
@Test void shouldNotBeNull() { MapValue map = mapValue(); assertFalse(map.isNull()); }