@Test
public void testParse() throws JSONException {

	final BasicVotesJsonParser parser = new BasicVotesJsonParser();
	final BasicVotes basicVotes = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/votes/valid.json"));
	assertEquals(1, basicVotes.getVotes());
	assertTrue(basicVotes.hasVoted());
	assertEquals(TestUtil.toUri("http://localhost:8090/jira/rest/api/latest/issue/TST-1/votes"), basicVotes.getSelf());
}