@Test
public void shouldHitFullMatchLimit() {

    // when
    List<String> classNames = classpathCache.getMatchingClassNames("Builder", 5);
    // then
    assertThat(classNames).hasSize(5);
    for (String className : classNames) {
        if (!className.endsWith("$Builder") && !className.endsWith(".Builder")) {
            throw new AssertionError();
        }
    }
}