@Test
public void testFindTargetById() throws Exception {

	Response resp = this.resource.findTargetById( "2" );
	Assert.assertEquals( Status.NOT_FOUND.getStatusCode(), resp.getStatus());
	String t2 = (String) this.resource.createOrUpdateTarget( "id: tid\nhandler: h\ndescription: we do not care", null ).getEntity();
	resp = this.resource.findTargetById( t2 );
	Assert.assertEquals( Status.OK.getStatusCode(), resp.getStatus());
	TargetWrapperDescriptor twd = (TargetWrapperDescriptor) resp.getEntity();
	Assert.assertNotNull( twd );
	Assert.assertEquals( t2, twd.getId());
	Assert.assertEquals( "we do not care", twd.getDescription());
	Assert.assertNull( twd.getName());
}