class Aether {

    protected AetherResult resolveWithTransitives(Artifact artifact) throws AetherException {
        try {
            CollectRequest collectRequest = new CollectRequest(
                    new Dependency(artifact, scope),
                    repositories()
            );

            DependencyRequest request = new DependencyRequest(collectRequest, null);
            return new AetherResult(system.resolveDependencies(session, request).getArtifactResults());
        } catch (DependencyResolutionException e) {
            throw new AetherException("Can't resolve given artifact " + artifact, e);
        }
    }

}

class AetherTest  {

    @Test
    public void resolveWithTransitivesTest() throws Exception {

        List<ArtifactResult> results = aether(localRepo, mavenSettings)
                .resolve(ALLURE_MODEL).get();

        assertThat(results.size(), is(5));
    }

}