}
@Test
public void testParseComponentWithId() throws Exception {
ComponentJsonParser parser = new ComponentJsonParser();
final Component component = parser.parse(ResourceUtil
.getJsonObjectFromResource("/json/component/complete-valid-with-id.json"));
Assert.assertEquals(new URI("http://localhost:8090/jira/rest/api/latest/component/10001"), component.getSelf());
Assert.assertEquals("Component B", component.getName());
Assert.assertEquals(TestConstants.USER1_BASIC_DEPRECATED, component.getLead());
Assert.assertEquals("another description", component.getDescription());
Assert.assertEquals(Long.valueOf(10001), component.getId());
}