Class matcher uses isAssignableFrom method