@Test
public void shouldThrowExceptionIfParameterHasWrongType() {

  var parameterMap = Interface.ParameterMap.newBuilder()
      .putParameters(PARAMETER_NAME, Interface.Parameter.newBuilder()
          .setVar(Interface.Variable.newBuilder()
              .setType(Types.LiteralType.newBuilder().
                  setSimple(Types.SimpleType.STRING)
                  .build())
              .build())
          .setDefault(Literals.Literal.newBuilder()
              .setScalar(Literals.Scalar.newBuilder()
                  .setPrimitive(Literals.Primitive.newBuilder()
                      .setStringValue("2020-09-15").build())
                  .build())
              .build())
          .build())
      .build();
  var exception = assertThrows(
      IllegalArgumentException.class,
      () -> fillParameterInInputs(parameterMap, PARAMETER)
  );
  assertThat(exception.getMessage(), equalTo(PARAMETER_NAME + " should be of type DATETIME"));
}