	@Test
	public void setWriters() {

		WorkflowBundleWriter myWriter = new WorkflowBundleWriter() {
			@Override
			public Set<String> getMediaTypes() {
				return Collections.singleton("application/vnd.example.myOwn");
			}
			@Override
			public void writeBundle(WorkflowBundle wfBundle, File destination,
					String mediaType) {
			}
			@Override
			public void writeBundle(WorkflowBundle wfBundle,
					OutputStream output, String mediaType) {
			}
		};

		bundleIO.setWriters(Collections.singletonList(myWriter));
		assertEquals(1, bundleIO.getWriters().size());
		assertSame(myWriter, bundleIO.getWriters().get(0));
		assertSame(myWriter,
				bundleIO.getWriterForMediaType("application/vnd.example.myOwn"));

		// Should now be null
		assertNull(bundleIO
				.getWriterForMediaType(TEXT_VND_TAVERNA_SCUFL2_STRUCTURE));
	}