---
title: "Discussion on \"Tight Coupling Looked Fine...  Until I Tried to Unit Test\" | Hashnode"
description: "Discussion on \"Tight Coupling Looked Fine...  Until I Tried to Unit Test\". I deliberately broke my own Java code to understand why the new keyword makes unit testing impossible — and why Spring Boot's IoC container exists to fix exactly this."
url: "https://hashnode.com/posts/tight-coupling-looked-fine-until-i-tried-to-unit-test/6a181665badcd8afcb864c09"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Tight Coupling Looked Fine... Until I Tried to Unit Test](https://brokenbydesign.hashnode.dev/tight-coupling-looked-fine-until-i-tried-to-unit-test?utm_source=hashnode&utm_medium=feed)

I deliberately broke my own Java code to understand why the new keyword makes unit testing impossible — and why Spring Boot's IoC container exists to fix exactly this.

May 28 · 4 min read · brokenbydesign.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#backend](https://hashnode.com/tag/backend)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## Written by

[Saswata Paul](https://hashnode.com/@spl21)

@spl21 · Kolkata, India

  
[View profile](https://hashnode.com/@spl21)

Java Backend Developer

Java Backend Engineer focused on building robust, testable enterprise services. Currently exploring Spring Boot internals, database optimizations, and automated build lifecycles using a hands-on, terminal-first workflow on Ubuntu.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
