TargetHelpers { public static String findTargetHandlerName( Properties props ) { return props.getProperty( Constants.TARGET_PROPERTY_HANDLER ); } private  TargetHelpers(); static void verifyTargets(
			ITargetHandlerResolver targetHandlerResolver,
			ManagedApplication ma,
			ITargetsMngr targetsMngr ); static Map<String,String> expandProperties( Instance scopedInstance, Map<String,String> targetProperties ); static String findTargetHandlerName( Properties props ); static String findTargetHandlerName( Map<String,String> props );  }
@Test public void testFindTargetHandlerName_properties() { Properties props = new Properties(); Assert.assertNull( TargetHelpers.findTargetHandlerName( props )); props.put( Constants.TARGET_PROPERTY_HANDLER, "whatever" ); Assert.assertEquals( "whatever", TargetHelpers.findTargetHandlerName( props )); props.remove( Constants.TARGET_PROPERTY_HANDLER ); Assert.assertNull( TargetHelpers.findTargetHandlerName( props )); }
@Test public void testFindTargetHandlerName_map() { Map<String,String> props = new HashMap<>( 2 ); Assert.assertNull( TargetHelpers.findTargetHandlerName( props )); props.put( Constants.TARGET_PROPERTY_HANDLER, "whatever" ); Assert.assertEquals( "whatever", TargetHelpers.findTargetHandlerName( props )); props.remove( Constants.TARGET_PROPERTY_HANDLER ); Assert.assertNull( TargetHelpers.findTargetHandlerName( props )); }