} catch (NoSuchMethodException e) {
throw new AssertionError();
}
suite.addTest(MapTestSuiteBuilder
.using(new TestClassToInstanceMapGenerator() {
// Other tests will verify what real, warning-free usage looks like
// but here we have to do some serious fudging
@SuppressWarnings("unchecked")
public Map<Class, Number> create(Object... elements) {
MutableClassToInstanceMap<Number> map