this method runs before the test execution and sets the bean objects in the beans map . concode_field_sep String BATTLESHIP_BEAN concode_elem_sep String CAPTAIN_BEAN concode_elem_sep Map<String,Object> beans concode_field_sep void testAdapter
void function ( ) { beans = new HashMap < > ( ) ; BattleFishingBoat loc0 = spy ( new BattleFishingBoat ( ) ) ; beans . put ( BATTLESHIP_BEAN , loc0 ) ; Captain loc1 = new Captain ( ) ; loc1 . setBattleship ( ( BattleFishingBoat ) beans . get ( BATTLESHIP_BEAN ) ) ; beans . put ( CAPTAIN_BEAN , loc1 ) ; }