cont.setBinary("fileAsset", file);
cont.setLanguageId(1);
cont = APILocator.getContentletAPI().checkin(cont,user,false);
APILocator.getContentletAPI().isInodeIndexed(cont.getInode());
ObjectList list = doQuery("SELECT * FROM cmis:document WHERE cmis:name='"+title+"'");
assertEquals(BigInteger.valueOf(1),list.getNumItems());
assertEquals(cont.getInode(),list.getObjects().get(0).getId());
}