How to get src/main/java classloader from unit test

In a unit test, I'm trying to get a list of classes under a package. When I do ...getClassLoader().getResource("<some package in both main and test>"); from a unit test, it returns a URL ...