### Question:
DiagnosticsReportCommand implements AdminCommand { static String describeClassifier( String classifier ) { switch ( classifier ) { case "logs": return "include log files"; case "config": return "include configuration file"; case "plugins": return "include a view of the plugin directory"; case "tree": return "include a view of the tree structure of the data directory"; case "tx": return "include transaction logs"; case "metrics": return "include metrics"; case "threads": return "include a thread dump of the running instance"; case "heap": return "include a heap dump"; case "env": return "include a list of all environment variables"; case "sysprop": return "include a list of java system properties"; case "raft": return "include the raft log"; case "ccstate": return "include the current cluster state"; case "activetxs": return "include the output of dbms.listTransactions()"; case "ps": return "include a list of running processes"; default: } throw new IllegalArgumentException( "Unknown classifier: " + classifier ); } DiagnosticsReportCommand( Path homeDir, Path configDir, OutsideWorld outsideWorld ); static Arguments allArguments(); @Override void execute( String[] stringArgs ); static final String PID_KEY; }### Answer:
@SuppressWarnings( "ResultOfMethodCallIgnored" ) @Test void defaultValuesShouldBeValidClassifiers() { for ( String classifier : DEFAULT_CLASSIFIERS ) { describeClassifier( classifier ); } IllegalArgumentException exception = assertThrows( IllegalArgumentException.class, () -> describeClassifier( "invalid" ) ); assertEquals( "Unknown classifier: invalid", exception.getMessage() ); }