@Test
public void testGetWriter01() throws Exception {

    // 前処理(試験対象)
    String fileName = "fileName";
    Class<AbstractFileLineWriter_Stub01> clazz = AbstractFileLineWriter_Stub01.class;
    Map<String, ColumnFormatter> columnFormatterMap = new HashMap<String, ColumnFormatter>();
    columnFormatterMap.put("int", new IntColumnFormatter());
    columnFormatterMap.put("java.lang.String", new NullColumnFormatter());
    AbstractFileLineWriter<AbstractFileLineWriter_Stub01> fileLineWriter = new AbstractFileLineWriterImpl01<AbstractFileLineWriter_Stub01>(fileName, clazz, columnFormatterMap);
    // 前処理(フィールド)
    Writer writer = null;
    try {
        writer = new BufferedWriter(new OutputStreamWriter((new FileOutputStream(fileName, true)), System
                .getProperty("file.encoding")));
        ReflectionTestUtils.setField(fileLineWriter, "writer", writer);
        // テスト実施
        Writer result = fileLineWriter.getWriter();
        // 判定(戻り値)
        assertNotNull(result);
        assertSame(writer, result);
    } finally {
        if (writer != null) {
            writer.close();
        }
        // 試験後生成されるファイルの削除
        File file = new File(fileName);
        file.delete();
    }
}