### Question:
PathParameter extends RequestParameter { public boolean isNamed() { return (null != super.getName()) && !"".equals(super.getName().trim()); } PathParameter();  PathParameter(final String name, final String value, final PrettyExpression expression);  PathParameter(final String name, final String value); PathParameter copy(); int getPosition(); void setPosition(final int param); boolean isNamed(); @Override String getName(); String getRegex(); void setRegex(final String regex); void setExpressionIsPlainText(final boolean value); boolean expressionIsPlainText(); @Override String toString();  }### Answer:
@Test public void testIsNamedFalseWhenNameNull() { PathParameter parameter = new PathParameter(); assertFalse(parameter.isNamed()); }
@Test public void testIsNamedFalseWhenNameEmpty() { PathParameter parameter = new PathParameter(); parameter.setName(""); assertFalse(parameter.isNamed()); }
@Test public void testIsNamedTrueWhenNameSet() { PathParameter parameter = new PathParameter(); parameter.setName("name"); assertTrue(parameter.isNamed()); }