@SuppressWarnings("rawtypes")
@Test
public void testPrintList05() throws Exception {

    // 前処理(ファイル)
    String fileName = TEMP_FILE_NAME;
    // 前処理(試験対象)
    Class<AbstractFileLineWriter_Stub10> clazz = AbstractFileLineWriter_Stub10.class;
    Map<String, ColumnFormatter> columnFormatterMap = new HashMap<String, ColumnFormatter>();
    columnFormatterMap.put("int", new IntColumnFormatter());
    columnFormatterMap.put("java.lang.String", new NullColumnFormatter());
    AbstractFileLineWriter<AbstractFileLineWriter_Stub10> fileLineWriter = new AbstractFileLineWriterImpl01<AbstractFileLineWriter_Stub10>(fileName, clazz, columnFormatterMap);
    Reader postReader = null;
    Writer writer = null;
    try {
        fileLineWriter.init();
        // 前処理(引数)
        List<String> stringList = null;
        // 前処理(フィールド)
        ReflectionTestUtils.setField(fileLineWriter, "lineFeedChar", System
                .getProperty("line.separator"));
        ReflectionTestUtils.setField(fileLineWriter, "currentLineCount", 0);
        // テスト実施
        Method method = AbstractFileLineWriter.class.getDeclaredMethod(
                "printList", new Class[] { List.class });
        method.setAccessible(true);
        method.invoke(fileLineWriter, new Object[] { stringList });
        fail("NullPointerExceptionが発生しませんでした。");
    } catch (InvocationTargetException e) {
        // 判定(例外)
        assertTrue(e.getTargetException() instanceof NullPointerException);
        assertTrue(NullPointerException.class.isAssignableFrom(e
                .getTargetException().getClass()));
        // 判定(状態変化、メソッド)
        // writerをモック化するとテスト対象外の箇所で挙動が変化してしまい、正常動作しなくなるため確認を行わない。
        // assertFalse(VMOUTUtil.isCalled(Writer.class, "write"));
        // 判定(ファイル)
        writer = (Writer) ReflectionTestUtils.getField(fileLineWriter,
                "writer");
        writer.flush();
        postReader = new BufferedReader(new InputStreamReader(new FileInputStream(fileName), System
                .getProperty("file.encoding")));
        assertFalse(postReader.ready());
    } finally {
        if (writer != null) {
            writer.close();
        }
        if (postReader != null) {
            postReader.close();
        }
        Field field = AbstractFileLineWriter.class.getDeclaredField(
                "stringConverterCacheMap");
        field.setAccessible(true);
        field.set(AbstractFileLineWriter.class,
                new HashMap<Class, StringConverter>());
    }
}