@Test
public void testGreenLine() {

	IdmScriptDto script = createScript(
			"import " + StringUtils.class.getCanonicalName() + ";" + System.lineSeparator() +
			"if (!valueGenerator.isRegenerateValue() && StringUtils.isNotEmpty(entity.getDescription())) {" + System.lineSeparator() +
			"	return entity;" + System.lineSeparator() +
			"}" + System.lineSeparator() +
			"" + System.lineSeparator() +
			"entity.setDescription(entity.getUsername() + 123);" + System.lineSeparator());
	
	String username = this.getHelper().createName();
	IdmIdentityDto identityDto = new IdmIdentityDto();
	identityDto.setFirstName(this.getHelper().createName());
	identityDto.setLastName(this.getHelper().createName());
	identityDto.setUsername(username);
	ValueGeneratorDto generator = getGenerator();
	this.createGenerator(getDtoType(), getGeneratorType(),
			this.createConfiguration(generator.getFormDefinition(), ImmutableMap.of(
					IdentityScriptValueGenerator.SCRIPT_CODE, script.getCode())), 1, null);
	IdmIdentityDto generatedDto = valueGeneratorManager.generate(identityDto);
	assertNotNull(generatedDto.getDescription());
	assertEquals(username + 123, generatedDto.getDescription());
}