System.out.println("1 ----- " + inst1 + "/" + inst1.getServiceObject());
System.out.println("2 ----- " + inst2 + "/" + inst2.getServiceObject());
System.out.println("3 ----- " + inst3 + "/" + inst3.getServiceObject());
HouseMeterSwitch houseMeter1 = (HouseMeterSwitch) inst1
.getServiceObject();
HouseMeterSwitch houseMeter2 = (HouseMeterSwitch) inst2
.getServiceObject();
HouseMeterSwitch houseMeter3 = (HouseMeterSwitch) inst3
.getServiceObject();
Assert.assertTrue(
"In case of a not singleton and not shared instance, all instances should be different",
houseMeter1 != houseMeter2);