assertEquals("Should have just 1 item left: " + list, 1, list.size());
}
public void testCoerceGStringToString() throws Throwable {
GString param = new GString(new Object[]{"James"}) {
public String[] getStrings() {
return new String[]{"Hello "};
}
};
Object value = invoke(this, "methodTakesString", new Object[]{param});
assertEquals("converted GString to string", param.toString(), value);
}