@Test public void testJavaLists() { Assert.assertEquals(MutableList.of("hello", "world"), JavaStringEscapes.unwrapQuotedJavaStringList("\"hello\", \"world\"", ",")); try { JavaStringEscapes.unwrapQuotedJavaStringList("\"hello\", world", ","); Assert.fail("Should have thrown"); } catch (Exception e) { /* expected */ }