@Test
public void testRegisterListOfTaskDef() {

    TaskDef taskDef = new TaskDef();
    taskDef.setName("test");
    taskDef.setDescription("desc");
    List<TaskDef> listOfTaskDefs = new ArrayList<>();
    listOfTaskDefs.add(taskDef);
    metadataResource.registerTaskDef(listOfTaskDefs);
    verify(mockMetadataService, times(1)).registerTaskDef(listOfTaskDefs);
}