*/
public void testSubscribeQos() {
System.out.println("***QueryQosFactoryTest: SubscribeQos ...");
try {
SubscribeQos subscribeQos = new SubscribeQos(glob);
subscribeQos.setWantContent(false);
subscribeQos.setSubscriptionId("MyOwnSentSubscribeId");
HistoryQos hh = new HistoryQos(glob, 33);
hh.setNewestFirst(false);
subscribeQos.setHistoryQos(hh);
subscribeQos.addAccessFilter(new AccessFilterQos(glob, "ContentLenFilter", "1.0", new Query(glob, "800")));
subscribeQos.addAccessFilter(new AccessFilterQos(glob, "ContentLenFilter2", "3.2", new Query(glob, "a<10")));
subscribeQos.setPersistent(true);
System.out.println("SubscribeQos: " + subscribeQos.toXml());
QueryQosData qos = factory.readObject(subscribeQos.toXml());
assertEquals("", false, qos.getWantContent());
assertEquals("", "MyOwnSentSubscribeId", qos.getSubscriptionId());
assertEquals("", 33, qos.getHistoryQos().getNumEntries());
assertEquals("", false, qos.getHistoryQos().getNewestFirst());