MongoDbDecorator implements TestMethodDecorator { @Override public int getPriority() { return 3; }  @Override int getPriority(); @Override void beforeTest(final TestInvocation invocation); @Override void afterTest(final TestInvocation invocation); @Override boolean isConfigurationSupported(final ExecutionContext ctx);  }
@Test public void testRequiredPriority() { final int priority = decorator.getPriority(); assertThat(priority, equalTo(3)); }