### Question:
ModifierHelper { public static boolean matchesModifierLevel(AccessModifier modifierLevelOfElement, AccessModifier modifierLevel) { return (modifierLevelOfElement.getLevel() >= modifierLevel.getLevel()); } private  ModifierHelper(); static boolean matchesModifierLevel(AccessModifier modifierLevelOfElement, AccessModifier modifierLevel); static boolean matchesModifierLevel(int modifierOfElement, AccessModifier modifierLevel); static AccessModifier translateToModifierLevel(int modifier); static boolean isNotPrivate(JApiHasAccessModifier jApiHasAccessModifier); static boolean hasModifierLevelDecreased(JApiHasAccessModifier hasAccessModifier); static boolean matchesModifierLevel(JApiHasAccessModifier hasAccessModifier, AccessModifier accessModifierParam); static JApiModifier<T> extractModifierFromClass(Optional<CtClass> oldClassOptional, Optional<CtClass> newClassOptional, ExtractModifierFromClassCallback<T> callback); static JApiModifier<T> extractModifierFromBehavior(Optional<? extends CtBehavior> oldClassOptional, Optional<? extends CtBehavior> newClassOptional, ExtractModifierFromBehaviorCallback<T> callback); static JApiModifier<T> extractModifierFromField(Optional<CtField> oldFieldOptional, Optional<CtField> newFieldOptional, ExtractModifierFromFieldCallback<T> callback); static boolean isBridge(int modifier); static boolean isSynthetic(int modifier); static boolean includeSynthetic(JApiCanBeSynthetic jApiCanBeSynthetic, JarArchiveComparatorOptions options); static boolean includeSynthetic(JApiCanBeSynthetic jApiCanBeSynthetic, Options options); static boolean isSynthetic(JApiCanBeSynthetic jApiClass); static final int ACC_BRIDGE; static final int ACC_SYNTHETIC; }### Answer:
@Test public void publicToPublic() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPublic(0), AccessModifier.PUBLIC), is(true)); }
@Test public void publicToProtected() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPublic(0), AccessModifier.PROTECTED), is(true)); }
@Test public void publicToPrivate() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPublic(0), AccessModifier.PRIVATE), is(true)); }
@Test public void privateToPublic() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPrivate(0), AccessModifier.PUBLIC), is(false)); }
@Test public void privateToProtected() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPrivate(0), AccessModifier.PROTECTED), is(false)); }
@Test public void privateToPrivate() { assertThat(ModifierHelper.matchesModifierLevel(Modifier.setPrivate(0), AccessModifier.PRIVATE), is(true)); }