@Test
public void testGreenLine() {

	IdmIdentityDto identityDto = getHelper().createIdentity();
	IdmIdentityContractDto contractDto = new IdmIdentityContractDto();
	contractDto.setIdentity(identityDto.getId());
	String prefix = "prefix" + System.currentTimeMillis();
	String suffix = "suffix" + System.currentTimeMillis();
	ValueGeneratorDto generator = getGenerator();
	this.createGenerator(getDtoType(), getGeneratorType(),
			this.createConfiguration(generator.getFormDefinition(), ImmutableMap.of(
					ContractPositionNameGenerator.POSITION_NAME_PREFIX, prefix,
					ContractPositionNameGenerator.POSITION_NAME_SUFFIX, suffix)), 1, null);
	IdmIdentityContractDto generated = valueGeneratorManager.generate(contractDto);
	assertNotNull(generated);
	assertEquals(prefix + identityDto.getUsername() + suffix, generated.getPosition());
}