

package com.google.common.collect;

/**
 * Unit test for {@link ForwardingListMultimap}.
 *
 * @author Kurt Alfred Kluever
 */
public class ForwardingListMultimapTest extends ForwardingMultimapTest {

  @Override public void setUp() throws Exception {
    super.setUp();
    /*
     * Class parameters must be raw, so we can't create a proxy with generic
     * type arguments. The created proxy only records calls and returns null, so
     * the type is irrelevant at runtime.
     */
    @SuppressWarnings("unchecked")
    final ListMultimap<String, Boolean> multimap =
        createProxyInstance(ListMultimap.class);
    forward = new ForwardingListMultimap<String, Boolean>() {
      @Override protected ListMultimap<String, Boolean> delegate() {
        return multimap;
      }
    };
  }
}
