/** @throws Exception */
@Test
public void assign_s2() throws Exception
{
S2 v = new S2( 1, 2, 3, 4 ); check_s2( v, 1, 2, 3, 4 );
v.a = null; check_s2( v, null, 2, 3, 4 );
v.a = 5; check_s2( v, 5, 2, 3, 4 );
v.setA( null ); check_s2( v, null, 2, 3, 4 );
v.setA( 6 ); check_s2( v, 6, 2, 3, 4 );
v.b = null; check_s2( v, 6, null, 3, 4 );
v.b = 7; check_s2( v, 6, 7, 3, 4 );
v.setB( null ); check_s2( v, 6, null, 3, 4 );
v.setB( 8 ); check_s2( v, 6, 8, 3, 4 );
v.c = null; check_s2( v, 6, 8, null, 4 );
v.c = 9; check_s2( v, 6, 8, 9, 4 );
v.setC( null ); check_s2( v, 6, 8, null, 4 );
v.setC( 10 ); check_s2( v, 6, 8, 10, 4 );
v.d = null; check_s2( v, 6, 8, 10, null );
v.d = 11; check_s2( v, 6, 8, 10, 11 );
v.setD( null ); check_s2( v, 6, 8, 10, null );
v.setD( 12 ); check_s2( v, 6, 8, 10, 12 );
}