The Java API documentation for the call getCollection(java.lang.String) are incorrect. It does not actually create the collection when called. The actual (and expected behaviour I believe) is that the collection is actually only created when the first document is inserted into it.
The behaviour can be replicated with this simple java example:
which outputs to the console:
and in a connected Mongo shell to the mongod: