public void setCounter(Counter counter) {
this.counter = counter;
}
}
PropertyParsingContext context = newContext(Test.class, Test.class.getDeclaredField("counter"));
PropertyMeta meta = parser.parse(context);
assertThat(meta.type()).isEqualTo(PropertyType.COUNTER);
assertThat(meta.getCounterProperties()).isNotNull();
assertThat(meta.getCounterProperties().getFqcn()).isEqualTo(Test.class.getCanonicalName());
assertThat(context.getCounterMetas().get(0)).isSameAs(meta);
}