ImageStyleImpl extends GeneralComposeable implements ImageStyle { @Override public boolean equals(Object o) { return super.equals(o); } ImageStyleImpl(String id, int width, int height,
      ImageScalingMode scaling, boolean composeable, boolean preview);  ImageStyleImpl(String id, int width, int height);  ImageStyleImpl(String id, ImageScalingMode mode);  ImageStyleImpl(String id); void addContext(String type, boolean preview); @Override List<String> getContexts(); @Override boolean createPreview(String context); float scale(int width, int height); void setScalingMode(ImageScalingMode mode); ImageScalingMode getScalingMode(); void setHeight(int height); int getHeight(); void setWidth(int width); int getWidth(); @Override int hashCode(); @Override boolean equals(Object o); static ImageStyleImpl fromXml(Node node); static ImageStyleImpl fromXml(Node node, XPath xpath); String toXml(); @Override String toString(); static final String GLOBAL_CONTEXT; }
@Test public void testEqualsObject() { assertTrue(imageStyle.equals(new ImageStyleImpl(id, 1, 1))); assertFalse(imageStyle.equals(new ImageStyleImpl("test", width, height, scalingMode, composeable, createPreviewsForImages))); }