LookoutModule implements Module { @Override public boolean needLoad() { try { Class.forName("com.alipay.lookout.spi.MetricsImporterLocator"); return true; } catch (Exception e) { return false; } }  @Override boolean needLoad(); @Override void install(); @Override void uninstall();  }
@Test public void testNeedLoad() { LookoutModule lookoutModule = new LookoutModule(); Assert.assertEquals(true, lookoutModule.needLoad()); }