### Question:
DiscoAgentLoader implements AgentLoader { @Override public void loadAgent(final PreprocessConfig config, Instrumentation instrumentation) { if (config == null || config.getAgentPath() == null) { throw new NoAgentToLoadException(); } final ClassFileVersion version = parseClassFileVersionFromConfig(config); DiscoAgentTemplate.setAgentConfigFactory(() -> { final AgentConfig coreConfig = new AgentConfigParser().parseCommandLine(config.getAgentArg()); coreConfig.setAgentBuilderTransformer(getAgentBuilderTransformer(version)); return coreConfig; }); Injector.loadAgent( instrumentation, config.getAgentPath(), null ); }  @Override void loadAgent(final PreprocessConfig config, Instrumentation instrumentation);  }### Answer:
@Test(expected = NoAgentToLoadException.class) public void testLoadAgentFailOnNullPaths() throws NoAgentToLoadException { new DiscoAgentLoader().loadAgent(null, null); }