@Test
public void deprecatedRouterTestCase() {
ExtensionDeclaration extensionDeclaration = getEnrichedExtensionDeclaration(DeprecatedExtension.class);
ConstructDeclaration constructDeclaration =
(ConstructDeclaration) getNamedDeclaration(extensionDeclaration.getConstructs(), "deprecatedRouter");
assertTrue(constructDeclaration.getDeprecation().isPresent());
assertThat(constructDeclaration.getDeprecation().get().getMessage(), is("Use nonDeprecatedRouter instead."));
assertThat(constructDeclaration.getDeprecation().get().getDeprecatedSince(), is("1.4.0"));
assertTrue(constructDeclaration.getDeprecation().get().getToRemoveIn().isPresent());
assertThat(constructDeclaration.getDeprecation().get().getToRemoveIn().get(), is("2.0.0"));
}