public void spi() throws Exception {
profile.add("root", HadoopDataSource.class, "/");
profile.add("root", HadoopDataSourceProfile.KEY_PATH, folder.getRoot().toURI().toURL().toString());
profile.put();
SpiImporterPreparator testee = new SpiImporterPreparator(getClass().getClassLoader());
ModelOutput<Text> output = testee.createOutput(
new MockTextDefinition(),
new MockInputDescription("base", "input.txt", format),
profile.getTextContext());
put(output, "Hello, world!");
assertThat(get("base/input.txt"), is(Arrays.asList("Hello, world!")));