prepareCompilation();
convertMethod("method");
assertThat(
getTreeString(),
is("method { { public },method: void,, { anInteger { anInteger: int },aList { aList: List<String> } }, }"));
Node parameters = (Node) getLastChild().getPreviousSibling();
assertThat(getSource(parameters), is("int anInteger, List<String> aList"));
assertThat(parameters.getLabel(), is(JavaEntityType.PARAMETERS));
Node firstParameter = (Node) parameters.getFirstChild();
assertThat(getSource(firstParameter), is("anInteger"));
assertThat(firstParameter.getLabel(), is(JavaEntityType.PARAMETER));
Node firstParameterType = (Node) parameters.getFirstLeaf();
assertThat(getSource(firstParameterType), is("int"));
assertThat(firstParameterType.getLabel(), is(JavaEntityType.SINGLE_TYPE));
Node secondParameter = (Node) firstParameter.getNextSibling();
assertThat(getSource(secondParameter), is("aList"));
assertThat(secondParameter.getLabel(), is(JavaEntityType.PARAMETER));
Node secondParameterType = (Node) secondParameter.getFirstLeaf();
assertThat(getSource(secondParameterType), is("List<String>"));
assertThat(secondParameterType.getLabel(), is(JavaEntityType.PARAMETERIZED_TYPE));
}