Assert.assertNull(foundPerson);
}
@Test
public void testQuery() {
AddressOracleNoSqlOTM address1 = new AddressOracleNoSqlOTM();
address1.setAddressId("a");
address1.setStreet("sector 11");
AddressOracleNoSqlOTM address2 = new AddressOracleNoSqlOTM();
address2.setAddressId("b");
address2.setStreet("sector 12");
Set<AddressOracleNoSqlOTM> addresses = new HashSet<AddressOracleNoSqlOTM>();
addresses.add(address1);
addresses.add(address2);
PersonOracleNoSqlOTM person = new PersonOracleNoSqlOTM();
person.setPersonId("1");
person.setPersonName("Kuldeep");
person.setAddresses(addresses);
em.persist(person);
AddressOracleNoSqlOTM address1a = new AddressOracleNoSqlOTM();
address1a.setAddressId("a1");
address1a.setStreet("sector 11a");
AddressOracleNoSqlOTM address2b = new AddressOracleNoSqlOTM();
address2b.setAddressId("b1");
address2b.setStreet("sector 12b");
Set<AddressOracleNoSqlOTM> addresses1 = new HashSet<AddressOracleNoSqlOTM>();
addresses1.add(address1a);
addresses1.add(address2b);