@Test
public void testRegisterTaskDef() {

    TaskDef taskDef = new TaskDef();
    taskDef.setName("test");
    taskDef.setDescription("desc");
    metadataResource.registerTaskDef(taskDef);
    verify(mockMetadataService, times(1)).updateTaskDef(taskDef);
}