Exporting mesh with material groups/slots

I don’t need to export materials, but I want to export a mesh with the material groups preserved. No matter what method I use to export a mesh, it all comes out with only one material assigned.

Anybody have any success in exporting mesh with material groups?