Made test method public to support calling from private SDK