Program: 176117
Project: 176117
Buggy source:
@Test public void onInClause(){
  emf=Persistence.createEntityManagerFactory(PERSISTENCE_UNIT);
  EntityManager em=emf.createEntityManager();
  UUID timeLineId=UUID.randomUUID();
  CassandraCompoundKey key=new CassandraCompoundKey("String_Node_Str",1,timeLineId);
  Map<String,Client> clients=(Map<String,Client>)em.getDelegate();
  Client client=clients.get(PERSISTENCE_UNIT);
  ((CassandraClientBase)client).setCqlVersion(CassandraConstants.CQL_VERSION_3_0);
  CassandraPrimeUser user1=new CassandraPrimeUser(key);
  user1.setTweetBody("String_Node_Str");
  user1.setTweetDate(currentDate);
  em.persist(user1);
  key=new CassandraCompoundKey("String_Node_Str",2,timeLineId);
  CassandraPrimeUser user2=new CassandraPrimeUser(key);
  user2.setTweetBody("String_Node_Str");
  user2.setTweetDate(currentDate);
  em.persist(user2);
  key=new CassandraCompoundKey("String_Node_Str",3,timeLineId);
  CassandraPrimeUser user3=new CassandraPrimeUser(key);
  user3.setTweetBody("String_Node_Str");
  user3.setTweetDate(currentDate);
  em.persist(user3);
  em.flush();
  em.clear();
  String inClause="String_Node_Str";
  Query q=em.createQuery(inClause);
  List<CassandraPrimeUser> results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(2).getTweetBody());
  Assert.assertEquals(3,results.size());
  inClause="String_Node_Str";
  q=em.createQuery(inClause);
  results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(2).getTweetBody());
  Assert.assertEquals(3,results.size());
  inClause="String_Node_Str";
  q=em.createQuery(inClause);
  results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals(2,results.size());
  try {
    inClause="String_Node_Str";
    q=em.createQuery(inClause);
    results=q.getResultList();
    Assert.fail();
  }
 catch (  Exception e) {
    System.out.println(e.getMessage());
    Assert.assertEquals("String_Node_Str",e.getMessage());
  }
}

Fixed version (ground truth):
@Test public void onInClause(){
  emf=Persistence.createEntityManagerFactory(PERSISTENCE_UNIT);
  EntityManager em=emf.createEntityManager();
  UUID timeLineId=UUID.randomUUID();
  CassandraCompoundKey key=new CassandraCompoundKey("String_Node_Str",1,timeLineId);
  Map<String,Client> clients=(Map<String,Client>)em.getDelegate();
  Client client=clients.get(PERSISTENCE_UNIT);
  ((CassandraClientBase)client).setCqlVersion(CassandraConstants.CQL_VERSION_3_0);
  CassandraPrimeUser user1=new CassandraPrimeUser(key);
  user1.setTweetBody("String_Node_Str");
  user1.setTweetDate(currentDate);
  em.persist(user1);
  key=new CassandraCompoundKey("String_Node_Str",2,timeLineId);
  CassandraPrimeUser user2=new CassandraPrimeUser(key);
  user2.setTweetBody("String_Node_Str");
  user2.setTweetDate(currentDate);
  em.persist(user2);
  key=new CassandraCompoundKey("String_Node_Str",3,timeLineId);
  CassandraPrimeUser user3=new CassandraPrimeUser(key);
  user3.setTweetBody("String_Node_Str");
  user3.setTweetDate(currentDate);
  em.persist(user3);
  em.flush();
  em.clear();
  String inClause="String_Node_Str";
  Query q=em.createQuery(inClause);
  List<CassandraPrimeUser> results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(2).getTweetBody());
  Assert.assertEquals(3,results.size());
  inClause="String_Node_Str";
  q=em.createQuery(inClause);
  results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(2).getTweetBody());
  Assert.assertEquals(3,results.size());
  inClause="String_Node_Str";
  q=em.createQuery(inClause);
  results=q.getResultList();
  Assert.assertNotNull(results);
  Assert.assertEquals("String_Node_Str",results.get(0).getTweetBody());
  Assert.assertEquals("String_Node_Str",results.get(1).getTweetBody());
  Assert.assertEquals(2,results.size());
  try {
    inClause="String_Node_Str";
    q=em.createQuery(inClause);
    results=q.getResultList();
    Assert.fail();
  }
 catch (  Exception e) {
    Assert.assertEquals("String_Node_Str",e.getMessage());
  }
}