@Test
public void toStringGeneratesUsageHelp() throws Exception {
when(feederCreator.getFeederId()).thenReturn("feeder.range");
when(feederCreator.serializePartsLabels()).thenReturn(new String[] {"feeder.range.to"});
Exporter exporter = mock(Exporter.class);
when(exporters.iterator()).thenReturn(Collections.singleton(exporter).iterator());
when(exporter.getFilenameExtension()).thenReturn("pdf");
when(exporter.getId()).thenReturn("exporter.txt");
String usage = processor.toString();
assertTrue(usage.contains("-f:range"));
assertTrue(usage.contains(Labels.getLabel("feeder.range.to")));
assertTrue(usage.contains(".pdf"));