@Test
public void testOwnedBy() {

    final ViewModelStore store = new ViewModelStore();
    ViewModelStoreOwner owner = new ViewModelStoreOwner() {
        @Override
        public ViewModelStore getViewModelStore() {
            return store;
        }
    };
    ViewModelProvider provider = new ViewModelProvider(owner, new NewInstanceFactory());
    ViewModel1 viewModel = provider.get(ViewModel1.class);
    assertThat(viewModel, is(provider.get(ViewModel1.class)));
}