Repository: j-easy/easy-random
Issue: Unable to exclude java.time.Instant from being randomized

Given a configuration like:

```
 EnhancedRandomBuilder.aNewEnhancedRandomBuilder()
    .exclude(FieldDefinitionBuilder.field().named("createdAt").ofType(Instant.class).inClass(Foo.class).get())          
    .build();
```

The `createdAt` field is still populated.

Reason is that `TimeRandomizeRegistry` has higher priority than `CustomRandomizerRegistry`.


Changed files:
random-beans/src/main/java/io/github/benas/randombeans/randomizers/registry/TimeRandomizerRegistry.java
random-beans/src/test/java/io/github/benas/randombeans/randomizers/time/TimeSupportTest.java

diff --git a/random-beans/src/main/java/io/github/benas/randombeans/randomizers/registry/TimeRandomizerRegistry.java b/random-beans/src/main/java/io/github/benas/randombeans/randomizers/registry/TimeRandomizerRegistry.java
index 81e494a6..8011492f 100644
--- a/random-beans/src/main/java/io/github/benas/randombeans/randomizers/registry/TimeRandomizerRegistry.java
+++ b/random-beans/src/main/java/io/github/benas/randombeans/randomizers/registry/TimeRandomizerRegistry.java
@@ -23,6 +23,7 @@
  */
 package io.github.benas.randombeans.randomizers.registry;
 
+import io.github.benas.randombeans.annotation.Priority;
 import io.github.benas.randombeans.api.Randomizer;
 import io.github.benas.randombeans.api.RandomizerRegistry;
 import io.github.benas.randombeans.randomizers.time.*;
@@ -39,6 +40,7 @@ import java.util.TimeZone;
  *
  * @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
  */
+@Priority(-255)
 public class TimeRandomizerRegistry implements RandomizerRegistry {
 
     private final Map<Class<?>, Randomizer<?>> randomizers = new HashMap<>();
diff --git a/random-beans/src/test/java/io/github/benas/randombeans/randomizers/time/TimeSupportTest.java b/random-beans/src/test/java/io/github/benas/randombeans/randomizers/time/TimeSupportTest.java
index a4ae82dc..9c4b4694 100644
--- a/random-beans/src/test/java/io/github/benas/randombeans/randomizers/time/TimeSupportTest.java
+++ b/random-beans/src/test/java/io/github/benas/randombeans/randomizers/time/TimeSupportTest.java
@@ -25,8 +25,12 @@
 package io.github.benas.randombeans.randomizers.time;
 
 import io.github.benas.randombeans.EnhancedRandomBuilder;
+import io.github.benas.randombeans.FieldDefinitionBuilder;
 import io.github.benas.randombeans.api.EnhancedRandom;
 import io.github.benas.randombeans.beans.TimeBean;
+
+import java.time.Instant;
+
 import org.junit.Before;
 import org.junit.Test;
 
@@ -60,4 +64,16 @@ public class TimeSupportTest {
         assertThat(timeBean.getZonedDateTime()).isNotNull();
         assertThat(timeBean.getZoneOffset()).isNotNull();
     }
+
+    @Test
+    @SuppressWarnings("unchecked")
+    // https://github.com/benas/random-beans/issues/135
+    public void threeTenRandomizersCanBeOverridenByCustomRandomizers() {
+        EnhancedRandom customEnhancedRandom = EnhancedRandomBuilder.aNewEnhancedRandomBuilder()
+                .exclude(FieldDefinitionBuilder.field().named("instant").ofType(Instant.class).inClass(TimeBean.class).get()).build();
+
+        TimeBean timeBean = customEnhancedRandom.nextObject(TimeBean.class);
+
+        assertThat(timeBean.getInstant()).isNull();
+    }
 }