XStorage implements StorageEvent.Handler { public <T> XStorage save(String key, T value) { storage.setItem(key, xMapper.write(value)); return this; } XStorage(XMapper xMapper, Storage storage, EventBus eventBus); XStorage save(String key, T value); XStorage save(T value); void deleteRaw(String key); void delete(Class<?> clazz, String id); void delete(T value); boolean contains(final T value); boolean contains(final Class<T> clazz, String id); boolean contains(String key); T findById(final Class<T> clazz, String id); String findRawById(final Class<?> clazz, String id); int count(Class<?> clazz); List<T> find(final Class<T> clazz); List<String> findRaw(final Class<T> clazz); @Override void onStorageChange(StorageEvent event);  }
@Test public void testSave_withStar() { xStorage.save(new Object()); Mockito.verify(storage).setItem(Matchers.anyString(), Matchers.anyString()); }