RepoViewModel extends BaseObservable { public String getWatchers() { String watchersString = Integer.toString(repository.getWatchers()) + "\n Watchers"; return watchersString; } RepoViewModel(Repository repository); void setRepository(Repository repository); String getRepoTitle(); String getRepoDescription(); String getWatchers(); String getStars(); String getForks();  }
@Test public void testGetWatchers() throws Exception { Assert.assertEquals(mockRepository.getWatchers() + "\n Watchers", repoViewModel.getWatchers()); }