title: Google Guava Predicates.or() or Predicates.and() type
body: <p>In Guava, there is a utilities kind of method for Predicates class called 'or' or 'and', you can either pass a iterable or two predicates.</p>
  
  <p>I have a code example like below:</p>
  
  <pre><code>class AccountNamePredicate implements Predicate&lt;Account&gt; {}
  class AccountTypePredicate implements Predicate&lt;Account&gt; {}
  class AccountManager {
      public Predicate&lt;Account&gt; getPredicate() {
           return Predicates.and(new AccountNamePredicate(), new AccountTypePredicate());
      }
  }
  </code></pre>
  
  <p>My question is for the method getPredicate in AccountManager class, how can I test the method? </p>
  
  <p>If I want to assert the return type of this method, how can I write the correct code. My assert statement below doesn't pass:</p>
  
  <pre><code>assertThat(getPredicate(), is(instanceOf(Predicate.class)));
  </code></pre>
  
  <p>Any idea about that?</p>