SchedulerWsDelegate { public ScheduledJob getJobProperties( String jobId ) throws SchedulerWsException { this.logger.finer( "Getting the properties of a scheduled job: " + jobId ); WebResource path = this.resource.path( UrlConstants.SCHEDULER ).path( jobId ); ClientResponse response = this.wsClient.createBuilder( path ) .accept( MediaType.APPLICATION_JSON ) .get( ClientResponse.class ); handleResponse( response ); return response.getEntity( ScheduledJob.class ); } SchedulerWsDelegate( WebResource resource, WsClient wsClient ); List<ScheduledJob> listAllJobs( String appName, String cmdName ); String createOrUpdateJob( String jobId, String jobName, String appName, String cmdName, String cron ); void deleteJob( String jobId ); ScheduledJob getJobProperties( String jobId );  }
@Test( expected = SchedulerWsException.class ) public void testGetJob_inexitsing() throws Exception { this.client.getSchedulerDelegate().getJobProperties( "invalid id" ); }