Assert.assertEquals(
"java.lang.IllegalArgumentException: " + GenerationType.class.getSimpleName() + "."
+ GenerationType.TABLE + " Strategy not supported by this client :"
+ MongoDBClient.class.getName(), e.getMessage());
}
MongoGeneratedIdWithSequenceGenerator withSequenceGenerator = new MongoGeneratedIdWithSequenceGenerator();
withSequenceGenerator.setName("Kuldeep Kumar Mishra");
try
{
em.persist(withSequenceGenerator);
Assert.fail();
}