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