### Question:
CndSequencer implements StreamSequencer { public void sequence( InputStream stream, SequencerOutput output, StreamSequencerContext context ) { Destination destination = new OutputDestination(output, context); Path root = context.getValueFactories().getPathFactory().createRootPath(); CndImporter importer = new CndImporter(destination, root); Path inputPath = context.getInputPath(); if (inputPath.getLastSegment().getName().equals(JcrLexicon.CONTENT)) { inputPath = inputPath.getParent(); } String resourceName = inputPath.getLastSegment().getString(context.getNamespaceRegistry()); try { importer.importFrom(stream, context.getProblems(), resourceName); } catch (IOException e) { context.getProblems().addError(e, CndSequencerI18n.errorSequencingCndContent, e.getLocalizedMessage()); } }  void sequence( InputStream stream,
                          SequencerOutput output,
                          StreamSequencerContext context );  }### Answer:
@Test public void shouldGenerateNodeTypesForCndFileWithJSR170BuiltIns() throws IOException { sequence("builtin_nodetypes.cnd"); assertNoProblems(); }
@Test public void shouldGenerateNodeTypesForEmptyCndFile() throws IOException { sequence("empty.cnd"); assertNoProblems(); }
@Test public void shouldGenerateNodeTypesForCndFileWithImageNodeTypes() throws IOException { sequence("images.cnd"); assertNoProblems(); }
@Test public void shouldGenerateNodeTypesForCndFileWithMp3NodeTypes() throws IOException { sequence("mp3.cnd"); assertNoProblems(); }
@Test public void shouldGenerateNodeTypesForCndFileWithDdlTypes() throws IOException { sequence("StandardDdl.cnd"); assertNoProblems(); }