Collection<S> setResult = toSet.convert(source);
assertEquals(label + " converted to Set", source, setResult.toArray()[0]);
}
public void testBooleanConverters() throws Exception {
ConverterLoader loader = new BooleanConverters();
loader.loadConverters();
assertFromBoolean("BooleanToInteger", new BooleanConverters.BooleanToInteger(), 1, 0);
assertFromBoolean("BooleanToString", new BooleanConverters.BooleanToString(), "true", "false");
assertToBoolean("IntegerToBoolean", new BooleanConverters.IntegerToBoolean(), 1, 0);
assertToBoolean("StringToBoolean", new BooleanConverters.StringToBoolean(), "true", "false");
assertToCollection("BooleanToCollection", Boolean.TRUE);