public void keyTypeInferenceShouldWorkForJava() {
Map<String, String> config = new HashMap<String, String>();
config.put("ehcacheplugin", "disabled");
config.put("mongodbJacksonMapperCloseOnStop", "disabled");
final String collName = "mockcoll" + new Random().nextInt(10000);
FakeApplication app = fakeApplication(config);
running(app, new Runnable() {
@Override
public void run() {
JacksonDBCollection<MockObject, String> coll = MongoDB.getCollection(collName, MockObject.class);
MockObject o = new MockObject();