The two black spots are essentially breathing ports, and it'll press those near an opening in the katydid's body to get air.
The small hole noticed by Wil Hershberger and shown in this post is what the grub was using as an air port.