@Test public void isMplsEncodable() { DiscreteResource resource = Resources.discrete(DID, PN, MPLS).resource(); assertThat(sut.isEncodable(resource), is(true)); }
boolean isEncodable(DiscreteResource resource) { return resource.valueAs(Object.class) .map(Object::getClass) .map(codecs::containsKey) .orElse(Boolean.FALSE); }
Codecs { boolean isEncodable(DiscreteResource resource) { return resource.valueAs(Object.class) .map(Object::getClass) .map(codecs::containsKey) .orElse(Boolean.FALSE); } }
Codecs { boolean isEncodable(DiscreteResource resource) { return resource.valueAs(Object.class) .map(Object::getClass) .map(codecs::containsKey) .orElse(Boolean.FALSE); } private  Codecs(); }
Codecs { boolean isEncodable(DiscreteResource resource) { return resource.valueAs(Object.class) .map(Object::getClass) .map(codecs::containsKey) .orElse(Boolean.FALSE); } private  Codecs();  }
Codecs { boolean isEncodable(DiscreteResource resource) { return resource.valueAs(Object.class) .map(Object::getClass) .map(codecs::containsKey) .orElse(Boolean.FALSE); } private  Codecs();   }