### Question:
MemStore implements IStore, AutoCloseable { @Override public void store(InvokeContext ctx) { if (ctxIsEmpty(ctx)) { return; } PublisherManager.getInstance().publish(ctx, null); } MemStore(); @Override void store(InvokeContext ctx); @Override void close(); void asyncPublish(InvokeContext ctx);  }### Answer:
@Test public void test_store() { PublisherManager mgr = Mockito.mock(PublisherManager.class); PowerMockito.mockStatic(PublisherManager.class); Mockito.when(PublisherManager.getInstance()).thenReturn(mgr); PublisherManager actual = PublisherManager.getInstance(); assertEquals(mgr, actual); MemStore memStore = new MemStore(); memStore.store(null); InvokeContext ctx = new InvokeContext(); ctx.setSlotName("testSlotName"); memStore.store(ctx); }