### Question:
ManagementRegistrar { public static void registerJob(final Job job) throws JMException { MX_SERVER.registerMBean(job, createJobObjectName(job.getFormat(), job.getID())); }  static void registerJob(final Job job); static ObjectName createJobObjectName(final String format, final Integer jobId); static boolean isAlreadyRegistered(final ObjectName objectName); static void unregister(final ObjectName objectName); static final ObjectName RDFIZER_OBJECT_NAME; static final String JOB_OBJECT_NAME_PREFIX; }### Answer:
@Test public void registerJob() { final Job job = newJobResource(); try { ManagementRegistrar.registerJob(job); assertTrue(ManagementRegistrar.isAlreadyRegistered( ManagementRegistrar.createJobObjectName( job.getFormat(), job.getID()))); } catch (final JMException exception) { fail(); } finally { ManagementRegistrar.unregister( ManagementRegistrar.createJobObjectName( job.getFormat(), job.getID())); } }