public AccessInfo changeVisibility(int flag) {
		int currentVisFlags = accFlags & VISIBILITY_FLAGS;
		if (currentVisFlags == flag) {
			return this;
		}
		int unsetAllVisFlags = accFlags & ~VISIBILITY_FLAGS;
		return new AccessInfo(unsetAllVisFlags | flag, type);
	}
@Test
	public void changeVisibility() {
		AccessInfo accessInfo = new AccessInfo(AccessFlags.PROTECTED | AccessFlags.STATIC, AFType.METHOD);
		AccessInfo result = accessInfo.changeVisibility(AccessFlags.PUBLIC);

		assertThat(result.isPublic()).isTrue();
		assertThat(result.isPrivate()).isFalse();
		assertThat(result.isProtected()).isFalse();

		assertThat(result.isStatic()).isTrue();
	}