// Path: src/test/java/com/github/mangstadt/vinnie/TestUtils.java
// public static void assertEqualsAndHash(Object one, Object two) {
// 	assertEquals(one, two);
// 	assertEquals(two, one);
// 	assertEquals(one.hashCode(), two.hashCode());
// }
// 
// Path: src/test/java/com/github/mangstadt/vinnie/TestUtils.java
// public static void assertEqualsMethodEssentials(Object object) {
// 	assertTrue(object.equals(object));
// 	assertFalse(object.equals(null));
// 	assertFalse(object.equals("other class"));
// }


import static org.junit.Assert.fail;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.UnsupportedCharsetException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import static com.github.mangstadt.vinnie.TestUtils.assertEqualsAndHash;
import static com.github.mangstadt.vinnie.TestUtils.assertEqualsMethodEssentials;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
		}

		parameters.clear();
		parameters.put("CHARSET", "illegal name");
		try {
			parameters.getCharset();
			fail();
		} catch (IllegalCharsetNameException e) {
			//expected
		}

		parameters.clear();
		parameters.put("CHARSET", "utf-8");
		assertEquals("UTF-8", parameters.getCharset().name());
	}

	@Test
	public void copy() {
		VObjectParameters orig = new VObjectParameters();
		orig.put("name", "value");
		VObjectParameters copy = new VObjectParameters(orig);
		assertEquals(orig, copy);

		orig.put("name", "value2");
		assertEquals(Arrays.asList("value"), copy.get("name"));
	}

	@Test
	public void equals_and_hash() {
		VObjectParameters one = new VObjectParameters();
// Path: src/test/java/com/github/mangstadt/vinnie/TestUtils.java
// public static void assertEqualsAndHash(Object one, Object two) {
// 	assertEquals(one, two);
// 	assertEquals(two, one);
// 	assertEquals(one.hashCode(), two.hashCode());
// }
// 
// Path: src/test/java/com/github/mangstadt/vinnie/TestUtils.java
// public static void assertEqualsMethodEssentials(Object object) {
// 	assertTrue(object.equals(object));
// 	assertFalse(object.equals(null));
// 	assertFalse(object.equals("other class"));
// }


// Path: src/test/java/com/github/mangstadt/vinnie/VObjectParametersTest.java
import static org.junit.Assert.fail;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.UnsupportedCharsetException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import static com.github.mangstadt.vinnie.TestUtils.assertEqualsAndHash;
import static com.github.mangstadt.vinnie.TestUtils.assertEqualsMethodEssentials;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

		}

		parameters.clear();
		parameters.put("CHARSET", "illegal name");
		try {
			parameters.getCharset();
			fail();
		} catch (IllegalCharsetNameException e) {
			//expected
		}

		parameters.clear();
		parameters.put("CHARSET", "utf-8");
		assertEquals("UTF-8", parameters.getCharset().name());
	}

	@Test
	public void copy() {
		VObjectParameters orig = new VObjectParameters();
		orig.put("name", "value");
		VObjectParameters copy = new VObjectParameters(orig);
		assertEquals(orig, copy);

		orig.put("name", "value2");
		assertEquals(Arrays.asList("value"), copy.get("name"));
	}

	@Test
	public void equals_and_hash() {
		VObjectParameters one = new VObjectParameters();
		assertEqualsMethodEssentials(one);