test_class.file: cosmic-core/server/src/test/java/com/cloud/api/dispatch/SpecificCmdValidationWorkerTest.java
test_class.identifier: SpecificCmdValidationWorkerTest
test_case.body: @Test
      public void testHandle() throws ResourceAllocationException {
          // Prepare
          final BaseCmd cmd = mock(BaseCmd.class);
          final Map<String, String> params = new HashMap<>();
  
          // Execute
          final SpecificCmdValidationWorker worker = new SpecificCmdValidationWorker();
  
          worker.handle(new DispatchTask(cmd, params));
  
          // Assert
          verify(cmd, times(1)).validateSpecificParameters(params);
      }
test_case.class_method_signature: SpecificCmdValidationWorkerTest.testHandle()
test_case.full_signature: @Test public void testHandle()
test_case.identifier: testHandle
test_case.invocations: mock handle validateSpecificParameters verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHandle()
focal_class.file: cosmic-core/server/src/main/java/com/cloud/api/dispatch/SpecificCmdValidationWorker.java
focal_class.identifier: SpecificCmdValidationWorker
focal_class.interfaces: implements DispatchWorker
focal_class.class_method_signature: SpecificCmdValidationWorker.handle(final DispatchTask task)
focal_class.full_signature: @Override public void handle(final DispatchTask task)
focal_class.identifier: handle
focal_class.modifiers: @Override public
focal_class.parameters: (final DispatchTask task)
focal_class.return: void
focal_class.signature: void handle(final DispatchTask task)
focal_method.body: @Override
      public void handle(final DispatchTask task) {
          task.getCmd().validateSpecificParameters(task.getParams());
      }
focal_method.class_method_signature: SpecificCmdValidationWorker.handle(final DispatchTask task)
focal_method.full_signature: @Override public void handle(final DispatchTask task)
focal_method.identifier: handle
focal_method.invocations: validateSpecificParameters getCmd getParams
focal_method.modifiers: @Override public
focal_method.parameters: (final DispatchTask task)
focal_method.return: void
focal_method.signature: void handle(final DispatchTask task)