@Test
public void testReplacePlaceholdersEL_1() {

    Map<String, Attribute> attributes = new HashMap<String, Attribute>();
    Attribute attribute = new Attribute("some-{1}-${requestScope.someVariable}-other-{2}.jsp");
    attribute.setExpressionObject(new Expression((String)attribute.getValue()));
    attributes.put("something", attribute);
    Definition definition = new Definition("definitionName", new Attribute("template"), attributes);
    Definition nudef = PatternUtil.replacePlaceholders(definition, "nudef", "value0", "value1", "value2", "value3");
    assertEquals("nudef", nudef.getName());
    assertEquals(
            "some-value1-${requestScope.someVariable}-other-value2.jsp",
            nudef.getAttribute("something").getValue());
    assertEquals(
            "some-value1-${requestScope.someVariable}-other-value2.jsp",
            nudef.getAttribute("something").getExpressionObject().getExpression());
}