question: only the provider scope should have a null parent , it is an illegal state if a zone or region are orphaned concode_field_sep Location otherRegion concode_elem_sep Location otherZone concode_elem_sep Location host concode_elem_sep Location provider concode_elem_sep Location region concode_elem_sep Location orphanedZone concode_elem_sep Location orphanedRegion concode_elem_sep Location zone concode_field_sep void testThrowIllegalArgumentExceptionWhenWhenISpecifyAnOrphanedZone concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichTheSameScopeByNotEqualToInputLocationAndParentsAreNull concode_elem_sep void testReturnTrueWhenISpecifyALocationAndInputLocationIsNull concode_elem_sep void testThrowIllegalStateExceptionWhenInputIsAnOrphanedZone concode_elem_sep void testReturnTrueWhenISpecifyALocationWhichIsAChildOfInput concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichIsNotAGrandChildOfInput concode_elem_sep void testReturnTrueWhenISpecifyARegionAndInputLocationIsProvider concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichTheSameScopeByNotEqualToInputLocationAndParentsAreNotNull concode_elem_sep void testReturnTrueWhenIDontSpecifyALocation concode_elem_sep void testReturnTrueWhenISpecifyALocationWhichIsAGrandChildOfInput concode_elem_sep void testThrowIllegalStateExceptionWhenInputIsAnOrphanedRegion concode_elem_sep void testReturnTrueWhenIDontSpecifyALocationAndInputLocationIsNull concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichIsNotAChildOfInput
target: void function ( ) { NullEqualToIsParentOrIsGrandparentOfCurrentLocation loc0 = new NullEqualToIsParentOrIsGrandparentOfCurrentLocation ( Suppliers . ofInstance ( orphanedRegion ) ) ; Hardware loc1 = new HardwareBuilder ( ) . id ( "srini_string" ) . location ( region ) . build ( ) ; loc0 . apply ( loc1 ) ; }