Method { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Method other = (Method) obj; return Objects.equal(name, other.name) && Objects.equal(returnType, other.returnType) && Objects.equal(attributes, other.attributes) && Objects.equal(visibility, other.visibility) && Objects.equal(final1, other.final1) && Objects.equal(static1, other.static1) && Objects.equal(annotations, other.annotations); } Method(@Nonnull final String name, @Nonnull final ReturnType returnType, @Nonnull final List<Attribute> attributes,
			@Nonnull final Visibility visibility, @Nonnull final Final final1, @Nonnull final Static static1,
			@Nonnull final List<Annotation> annotations); @Override boolean equals(final Object obj); @Nonnull List<Annotation> getAnnotations(); @Nonnull List<Attribute> getAttributes(); @Nonnull Final getFinal(); @Nonnull String getName(); @Nonnull ReturnType getReturnType(); @Nonnull Static getStatic(); @Nonnull Visibility getVisibility(); @Override int hashCode(); @Override String toString();  }
@Test public void equals_null() { final Method a = new Blueprint().build(); assertFalse(a.equals(null)); }
@Test public void equals_otherClass() { final Method a = new Blueprint().build(); assertFalse(a.equals("")); }