PKBoardingPass extends PKGenericPass { public PKTransitType getTransitType() { return transitType; } protected  PKBoardingPass(); PKTransitType getTransitType(); static PKGenericPassBuilder builder(); static PKGenericPassBuilder builder(PKBoardingPass pass);  }
@Test public void test_builder() { assertThat(this.builder.isValid()).isFalse(); fillDummy(this.builder); assertThat(this.builder.isValid()).isFalse(); this.builder.transitType(PKTransitType.PKTransitTypeAir); assertThat(this.builder.isValid()).isTrue(); PKBoardingPass pass = this.builder.buildBoardingPass(); assertThat(pass).isNotNull(); pass = (PKBoardingPass) this.builder.build(); assertThat(pass).isNotNull(); assertThat(pass.getTransitType()).isEqualTo(PKTransitType.PKTransitTypeAir); }