### Question:
Platform extends io.dropwizard.Application<PlatformConfiguration> { public void start(String[] args) throws Exception { Preconditions.checkNotNull(args, "Arguments cannot be null."); run(args); } Platform(Application application); static Platform forApplication(Application application); void start(String[] args); @Override void initialize(Bootstrap<PlatformConfiguration> bootstrap); @Override void run(PlatformConfiguration configuration, Environment environment);  }### Answer:
@Test(expected = NullPointerException.class) public void start_must_be_called_with_args() throws Exception { Application application = mock(Application.class); Platform platform = newPlatform(application); platform.start(null); }
@Test public void start_with_no_args() throws Exception { Application application = mock(Application.class); when(application.getPlugins()).thenReturn(ImmutableList.<Plugin>of()); String[] args = new String[]{}; new Platform(application).start(args); }