### Question:
Dispatcher { public static Dispatcher getInstance() { return instance; } private  Dispatcher(); static Dispatcher getInstance(); void registerStore(Store store); void menuItemSelected(MenuItem menuItem);  }### Answer:
@Test public void testGetInstance() { assertNotNull(Dispatcher.getInstance()); assertSame(Dispatcher.getInstance(), Dispatcher.getInstance()); }
@Test public void testGetInstance() throws Exception { assertNotNull(Dispatcher.getInstance()); assertSame(Dispatcher.getInstance(), Dispatcher.getInstance()); }