Code example for FluentIterable

Methods: from

0
    ImmutableList<Step> steps = rule.getBuildSteps(
        buildContext,
        new FakeBuildableContext()); 
 
    // There should be a CopyStep per file being copied. Count 'em. 
    int copyStepsCount = FluentIterable.from(steps)
        .filter(Predicates.instanceOf(CopyStep.class))
        .size(); 
 
    assertEquals(1, copyStepsCount);
  } 
}