How can I unit test an extension that contains one or more NamedDomainObjectContainer class?

I am attempting to unit test some plugin code. It uses an extension, and the extension contains two instances of NamedDomainObjectContainer but I cannot find a concrete implementation usable in a unit test.