### Question:
SignatureUtils { public static String getVisibility(String modifiers) { for (String v : VISIBILITY_KEYWORDS) { if (modifiers.contains(v)) { return v; } } return PACKAGE_PRIVATE; }  static String normalizeSignature(MethodSignature3 methodSignature); static String normalizeSignature(String signature); static MethodLocation3 makeMethodLocation(Signature signature, String location); static String signatureToString(Signature signature); static String stripModifiers(String signature); static String getVisibility(String modifiers); static Signature makeSignature(Class<?> clazz, Method method); static MethodSignature3 makeMethodSignature(Class<?> clazz, Method method); static MethodSignature3 makeConstructorSignature(
      Class<?> clazz, Constructor<?> constructor); static final String PUBLIC; static final String PROTECTED; static final String PACKAGE_PRIVATE; static final String PRIVATE; }### Answer:
@Test public void should_detect_visibilities() { assertThat(SignatureUtils.getVisibility("foo public bar"), is("public")); assertThat(SignatureUtils.getVisibility("foo protected bar"), is("protected")); assertThat(SignatureUtils.getVisibility("foo package-private bar"), is("package-private")); assertThat(SignatureUtils.getVisibility("foo private bar"), is("private")); assertThat(SignatureUtils.getVisibility("foo bar"), is("package-private")); }