UuidNextIdStrategy implements IResolveDependencyStrategy { @Override public String resolve(final Object... args) throws ResolveDependencyStrategyException { return UUID.randomUUID().toString(); }  @Override String resolve(final Object... args);  }
@Test public void testUuidGenerated() throws ResolveDependencyStrategyException { IResolveDependencyStrategy strategy = new UuidNextIdStrategy(); assertTrue(strategy.resolve() instanceof String); assertNotEquals(strategy.resolve(), strategy.resolve()); }