@Test
 public void test_write_closeConnection() throws SQLException {
   // A
   // A
   writer.write(mockUser);
   // A
   verify(mockConnection, times(1)).close();
 }
 @Test
 public void test_write_createPreparedStatement() throws SQLException {
   // A
   // A
   writer.write(mockUser);
   // A
   verify(mockConnection, times(1)).prepareStatement(anyString());
 }
 @Test
 public void test_write_executeUpdate() throws SQLException {
   // A
   // A
   writer.write(mockUser);
   // A
   verify(mockPreparedStatement, times(1)).executeUpdate();
 }
 @Test
 public void test_write_openConnection() {
   // A
   // A
   writer.write(mockUser);
   // A
   verify(mockConnectionFactory, times(1)).getConnection();
 }