### Question:
PemUtils { public static boolean isBegPemBlock(byte[] line) { for (int i = 0; i < BEG_LINES.length; i++) { if (cmpBytes(line, BEG_LINES[i])) { return true; } } return false; }  static byte[] toPemBytes(Object obj); static String toPemString(Object obj); static Object fromPemBytes(byte[] pemBytes); static Object fromPemString(String pemStr); static String toMultiPemString(List<? extends Object> objList); static byte[] toMultiPem(List<? extends Object> objList); static List<PemBlock> parseMultiPem(String multiPemString); static List<PemBlock> parseMultiPem(byte[] multiPemBytes); static List<Object> getBlockObjects(List<PemBlock> blocks); static void writeLine(ByteArrayOutputStream bos, byte[] line); static boolean isBegPemBlock(byte[] line); static boolean isEndPemBlock(byte[] line); static boolean isEmptyLine(byte[] line); public JcaPEMWriter ass; static final byte[] BEG_PRV; static final byte[] END_PRV; static final byte[] BEG_CSR; static final byte[] END_CSR; static final byte[] BEG_CRT; static final byte[] END_CRT; static final byte[] BEG_RSA; static final byte[] END_RSA; static final byte[][] BEG_LINES; static final byte[][] END_LINES; }### Answer:
@Test public void testIsBegPemBlock() { assertTrue(PemUtils.isBegPemBlock(BEG_PRV)); assertTrue(PemUtils.isBegPemBlock(BEG_CSR)); assertTrue(PemUtils.isBegPemBlock(BEG_CRT)); assertTrue(PemUtils.isBegPemBlock(BEG_RSA)); assertFalse(PemUtils.isBegPemBlock(END_PRV)); assertFalse(PemUtils.isBegPemBlock(END_CSR)); assertFalse(PemUtils.isBegPemBlock(END_CRT)); assertFalse(PemUtils.isBegPemBlock(END_RSA)); }