@@ -0,0 +1,1043 @@
+package com.taxonic.carml.engine;%0A%0Aimport com.taxonic.carml.engine.template.TemplateParser;%0Aimport com.taxonic.carml.model.TermType;%0Aimport com.taxonic.carml.model.impl.ObjectMapImpl;%0A%0Aimport org.eclipse.rdf4j.model.ValueFactory;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0A%0Aimport java.util.function.Function;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class TermGeneratorCreatorTest %7B%0A%0A%0A%09@Test%0A%09public void getGenerator_withReferenceAndTemplate_throwsRuntimeException() throws Exception %7B%0A%0A%09%09TermGeneratorCreator tgc = new TermGeneratorCreator(null, %22foo%22, null, TemplateParser.build(), null);%0A%0A%09%09RuntimeException exception = null;%0A%09%09try%7B%0A%09%09%09tgc.getObjectGenerator(new ObjectMapImpl(%22foo.bar%22, null, %22foo%7Bfoo.bar%7D%22, TermType.LITERAL, null, null, null, null));%0A%0A%09%09%09Assert.assertFalse(%22Should have thrown exception%22, true);%0A%09%09%7D catch(RuntimeException e) %7B%0A%09%09%09exception = e;%0A%09%09%7D%0A%0A%09%09Assert.assertNotNull(exception);%0A%09%09Assert.assertTrue(exception.getMessage().startsWith(%222 generators were created for map%22));%0A%09%7D%0A%7D

add unit tests for term generator creator