class MyConcreteAppleMetaDataBox extends AbstractAppleMetaDataBox {
public MyConcreteAppleMetaDataBox() {
super("test");
this.appleDataBox = new AppleDataBox();
this.appleDataBox.setFlags(21);
this.appleDataBox.setData(new byte[4]);
}
}
MyConcreteAppleMetaDataBox myConcreteAppleMetaDataBox = new MyConcreteAppleMetaDataBox();
myConcreteAppleMetaDataBox.setValue("9");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
myConcreteAppleMetaDataBox.getBox(Channels.newChannel(baos));
Assert.assertEquals("9", myConcreteAppleMetaDataBox.getValue());