dataset.setBytes("PRIVATE", 0x00090002, VR.OB, BYTE01);
dataset.setDouble(Tag.FrameTime, VR.DS, 33.0);
dataset.setInt(Tag.SamplesPerPixel, VR.US, 1);
dataset.setInt(Tag.NumberOfFrames, VR.IS, 1);
dataset.setInt(Tag.FrameIncrementPointer, VR.AT, Tag.FrameTime);
dataset.setValue(Tag.OverlayData, VR.OW, new BulkData(null, "file:/OverlayData", false));
Fragments frags = dataset.newFragments(Tag.PixelData, VR.OB, 2);
frags.add(null);
frags.add(new BulkData(null, "file:/PixelData", false));
StringWriter writer = new StringWriter();
JsonGenerator gen = Json.createGenerator(writer);
new JSONWriter(gen).write(dataset);
gen.flush();
assertEquals(RESULT, writer.toString());