So I am using the @Document(collection="xxxxx") mongodb annotation for some pojo classes I have. I am wanting to be able to change "collection=xxxxx" to something like "collection=test_xxxxxx" only when I am running my integration tests so that I can distinguish these collections easily from my documents I generate in my Test environment on my server.
Is there a way to update these with Java code?