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