(#19760) Remove unnecessary stubbing in sun_spec

We do not have to stub the `command` method anymore because it is
nevery called directly. It is only called through the wrapper method
`pkginfo` which we already stub in the specs.