code: @Override
      public <T> T createMockComponent(final Class<T> type) {
          if (isFinalOrPrimitive(type)) {
              LOG.warn("Skipping creation of a mock : {} as it is final or primitive type.", type.getSimpleName());
              return null;
          }
  
          return Mockito.mock(type);
      }
docs: {@inheritDoc} Skipping creation, if the type is final or primitive.
  
  @return the mock object or null, if the type is final or primitive.