void () { JavaPostfixTemplateExpressionCondition condition = new JavaPostfixTemplateExpressionCondition.JavaPostfixTemplateExpressionFqnCondition("test.class.Name"); Set<? extends JavaPostfixTemplateExpressionCondition> conditions = reloadConditions(templateWithCondition(condition)); JavaPostfixTemplateExpressionCondition reloadedCondition = ContainerUtil.getFirstItem(conditions); assertSameElements(conditions, condition); assertEquals("test.class.Name", ((JavaPostfixTemplateExpressionCondition.JavaPostfixTemplateExpressionFqnCondition)reloadedCondition).getFqn()); }