value = StringHelper.substringInBetween("archive/sub3/subb/doc1.doc", null, "/");
Assert.assertTrue(value.equals("archive"));
}
public void testJava2XmlJson() {
XSerializer serializer = new XSerializer(new XSerializerXmlAdapter());
serializer.setFlattenCollection(true);
serializer.setOmitNull(true);
Foo foo = new Foo("dummyName", "dummyValue");
foo.sub = new SubFoo("subName", "subValue");
foo.subs.add(new SubFoo("Sub1", "Sub1-value"));