@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof NiciraNshMdType) {
            NiciraNshMdType that = (NiciraNshMdType) obj;
            return Objects.equals(nshMdType, that.nshMdType);

        }
        return false;
    }
@Test
    public void testEquals() {
        final NiciraNshMdType nshMdType1 = new NiciraNshMdType(mdType1);
        final NiciraNshMdType sameAsnshMdType1 = new NiciraNshMdType(mdType1);
        final NiciraNshMdType nshMdType2 = new NiciraNshMdType(mdType2);

        new EqualsTester().addEqualityGroup(nshMdType1, sameAsnshMdType1).addEqualityGroup(nshMdType2)
        .testEquals();
    }