expanded DummyClassLoader to support multiple classes
Convenience method to simplify the use
Another convenience method
Moved the utility code to outside