did you want expectedType.isAssignableFrom(...) ?