### Question:
SchematronResourceXSLT extends AbstractSchematronXSLTBasedResource <SchematronResourceXSLT> { @Nonnull public static SchematronResourceXSLT fromByteArray (@Nonnull final byte [] aSchematron) { return new SchematronResourceXSLT (new ReadableResourceByteArray (aSchematron)); } SchematronResourceXSLT(@Nonnull final IReadableResource aXSLTResource); @Override @Nullable ISchematronXSLTBasedProvider getXSLTProvider(); @Nonnull static SchematronResourceXSLT fromClassPath(@Nonnull @Nonempty final String sXSLTPath); @Nonnull static SchematronResourceXSLT fromFile(@Nonnull @Nonempty final String sXSLTPath); @Nonnull static SchematronResourceXSLT fromFile(@Nonnull final File aXSLTFile); @Nonnull static SchematronResourceXSLT fromURL(@Nonnull @Nonempty final String sSCHURL); @Nonnull static SchematronResourceXSLT fromURL(@Nonnull final URL aSCHURL); @Nonnull static SchematronResourceXSLT fromInputStream(@Nonnull final InputStream aSchematronIS); @Nonnull static SchematronResourceXSLT fromByteArray(@Nonnull final byte [] aSchematron); @Nonnull static SchematronResourceXSLT fromString(@Nonnull final String sSchematron, @Nonnull final Charset aCharset);  }### Answer:
@Test public void testFromByteArray () throws Exception { final byte [] aPayload = StreamHelper.getAllBytes (VALID_XSLT_SCHEMATRON); final SchematronResourceXSLT sch = SchematronResourceXSLT.fromByteArray (aPayload); Assert.assertTrue ("invalid schematron", sch.isValidSchematron ()); final Document aDoc = sch.applySchematronValidation (VALID_XMLINSTANCE); assertNotNull (aDoc); }