December 2, 2026
7 Java Bugs Your Unit Tests Won’t Catch — Until You Start Mutation Testing
Why 100% code coverage doesn’t guarantee correct software, seven Java coding challenges that expose weak tests, and how PIT can help you…

By The Turtle Code
11 min read
- 1 1. The uncomfortable truth about Java code coverage
- 2 2. Bug #1: The boundary condition that silently changes business rules
- 3 3. Bug #2: An authorization condition gets inverted
- 4 4. Bug #3: A critical side effect disappears
- 5 5. Bug #4: The arithmetic is wrong, but the test checks the wrong property
Why 100% code coverage doesn't guarantee correct software, seven Java coding challenges that expose weak tests, and how PIT can help you build a more reliable test suite.
Imagine reviewing a Java payment service before a production deployment.
Every unit test passes. The coverage report is green. The pull request gets approved.
Now change a single operator in the application:
if (amount >= 1000)if (amount >= 1000)To:
if (amount > 1000)if (amount > 1000)Run the tests again.
Would they fail?
If your test suite only checks amounts of ₹500 and ₹2,000, the answer is no. Both implementations produce identical results for those inputs.
But a customer spending exactly ₹1,000 could lose a discount they were entitled to receive.
The problem isn't that the code wasn't tested.
The problem is that the tests didn't distinguish correct behavior from incorrect behavior.
That distinction is what makes mutation testing valuable.
In this article, we'll examine seven Java bugs that can survive ordinary unit tests, understand how mutation testing detects weaknesses in test suites, and build a practical framework for writing better production-quality tests.
The examples are intentionally constructed coding challenges that you can reproduce locally.
1. The uncomfortable truth about Java code coverage
Consider this method:
public int calculateDiscount(int amount) {
if (amount >= 1000) {
return 100;
}
return 0;
}public int calculateDiscount(int amount) {
if (amount >= 1000) {
return 100;
}
return 0;
}And its corresponding JUnit tests:
@Test
void shouldApplyDiscount() {
assertEquals(100, service.calculateDiscount(2000));
}
@Test
void shouldNotApplyDiscount() {
assertEquals(0, service.calculateDiscount(500));
}@Test
void shouldApplyDiscount() {
assertEquals(100, service.calculateDiscount(2000));
}
@Test
void shouldNotApplyDiscount() {
assertEquals(0, service.calculateDiscount(500));
}Both branches execute. A coverage tool can report complete line and branch coverage for this small method.
But neither test verifies the most important boundary: exactly 1,000.
Now imagine a tool that automatically changes the condition and runs the tests again.
Original implementation
|
v
Introduce a small code mutation
|
v
Run relevant unit tests
|
+---- Tests fail ----> Mutation killed
|
+---- Tests pass ----> Mutation survivesOriginal implementation
|
v
Introduce a small code mutation
|
v
Run relevant unit tests
|
+---- Tests fail ----> Mutation killed
|
+---- Tests pass ----> Mutation survivesThis is mutation testing.
Traditional code coverage asks:
Which parts of the application did your tests execute?
Mutation testing asks:
Would your tests notice if those parts behaved differently?
The questions are related, but they are not interchangeable.
A highly covered application can still have weak assertions, missing boundary conditions, and untested business invariants.
Tools such as PIT help expose those weaknesses by introducing small changes into compiled Java code and checking whether existing tests detect them.
Let's examine seven examples.
2. Bug #1: The boundary condition that silently changes business rules
Boundary conditions are particularly dangerous in financial applications, rate limiters, authorization systems, inventory management, and subscription platforms.
Suppose a customer qualifies for free delivery when their order amount is at least ₹500.
public boolean qualifiesForFreeDelivery(int amount) {
return amount >= 500;
}public boolean qualifiesForFreeDelivery(int amount) {
return amount >= 500;
}The original tests:
@Test
void expensiveOrderQualifies() {
assertTrue(service.qualifiesForFreeDelivery(800));
}
@Test
void inexpensiveOrderDoesNotQualify() {
assertFalse(service.qualifiesForFreeDelivery(200));
}@Test
void expensiveOrderQualifies() {
assertTrue(service.qualifiesForFreeDelivery(800));
}
@Test
void inexpensiveOrderDoesNotQualify() {
assertFalse(service.qualifiesForFreeDelivery(200));
}Now introduce a mutation:
return amount > 500;return amount > 500;The tests still pass.
Input | Correct behavior | Mutated behavior
------+------------------+-----------------
200 | false | false
499 | false | false
500 | true | false
501 | true | true
800 | true | trueInput | Correct behavior | Mutated behavior
------+------------------+-----------------
200 | false | false
499 | false | false
500 | true | false
501 | true | true
800 | true | trueOnly the boundary input exposes the defect.
The stronger test suite uses a parameterized test:
@ParameterizedTest
@CsvSource({
"499, false",
"500, true",
"501, true"
})
void verifiesDeliveryThreshold(
int amount,
boolean expected) {
assertEquals(
expected,
service.qualifiesForFreeDelivery(amount)
);
}@ParameterizedTest
@CsvSource({
"499, false",
"500, true",
"501, true"
})
void verifiesDeliveryThreshold(
int amount,
boolean expected) {
assertEquals(
expected,
service.qualifiesForFreeDelivery(amount)
);
}Notice that adding ten random test values wouldn't necessarily improve this test as much as adding one carefully selected boundary value.
Engineering lesson: Test immediately below, exactly at, and immediately above every meaningful business threshold.
This applies to maximum transaction limits, expiration timestamps, pagination boundaries, password lengths, and capacity constraints.
Interview question: Can a method have 100% branch coverage and still contain an off-by-one error?
Yes. Branch coverage verifies that both outcomes were executed. It doesn't establish that the transition between those outcomes occurs at the correct boundary.
3. Bug #2: An authorization condition gets inverted
Consider an authorization rule:
public boolean canAccess(User user) {
return user.isAdmin() && user.isActive();
}public boolean canAccess(User user) {
return user.isAdmin() && user.isActive();
}A surprisingly weak test might be:
@Test
void shouldReturnAccessDecision() {
assertDoesNotThrow(() -> service.canAccess(user));
}@Test
void shouldReturnAccessDecision() {
assertDoesNotThrow(() -> service.canAccess(user));
}The method executes successfully. But what behavior does the test protect?
Almost none.
If the implementation becomes:
return !user.isAdmin() && user.isActive();return !user.isAdmin() && user.isActive();the test can still pass.
This is particularly concerning when developers write tests to satisfy coverage requirements rather than verify business outcomes.
Authorization tests should explicitly establish who receives access and who must be denied.
Administrator | Active | Access
--------------+--------+-------
true | true | Allow
true | false | Deny
false | true | Deny
false | false | Deny
@ParameterizedTest
@CsvSource({
"true, true, true",
"true, false, false",
"false, true, false",
"false, false, false"
})
void verifiesAuthorizationPolicy(
boolean admin,
boolean active,
boolean expected) {
User user = new User(admin, active);
assertEquals(expected, service.canAccess(user));
}Administrator | Active | Access
--------------+--------+-------
true | true | Allow
true | false | Deny
false | true | Deny
false | false | Deny
@ParameterizedTest
@CsvSource({
"true, true, true",
"true, false, false",
"false, true, false",
"false, false, false"
})
void verifiesAuthorizationPolicy(
boolean admin,
boolean active,
boolean expected) {
User user = new User(admin, active);
assertEquals(expected, service.canAccess(user));
}This approach converts a business policy into a truth table that the application must satisfy.
For sensitive authorization logic, include negative cases even when the positive cases appear obvious.
A system that correctly authorizes administrators but also authorizes unauthorized users is not partially secure. Its authorization policy is broken.
4. Bug #3: A critical side effect disappears
A method can return the correct response while failing to perform an important operation.
Consider an order service:
public Order placeOrder(Order order) {
Order savedOrder = repository.save(order);
auditService.recordOrderCreated(savedOrder);
return savedOrder;
}public Order placeOrder(Order order) {
Order savedOrder = repository.save(order);
auditService.recordOrderCreated(savedOrder);
return savedOrder;
}A conventional Mockito test might look like this:
@Test
void shouldCreateOrder() {
when(repository.save(order))
.thenReturn(savedOrder);
Order result = service.placeOrder(order);
assertEquals(savedOrder, result);
}@Test
void shouldCreateOrder() {
when(repository.save(order))
.thenReturn(savedOrder);
Order result = service.placeOrder(order);
assertEquals(savedOrder, result);
}Now remove the audit operation:
public Order placeOrder(Order order) {
return repository.save(order);
}public Order placeOrder(Order order) {
return repository.save(order);
}The test still passes.
The returned order is correct, but the audit event is missing.
Expected behavior:
Save order
|
+--> Record audit event
|
+--> Return saved order
Mutated behavior:
Save order
|
+--> Return saved orderExpected behavior:
Save order
|
+--> Record audit event
|
+--> Return saved order
Mutated behavior:
Save order
|
+--> Return saved orderThe stronger test verifies the relevant side effect:
@Test
void shouldCreateOrderAndRecordAuditEvent() {
when(repository.save(order))
.thenReturn(savedOrder);
Order result = service.placeOrder(order);
assertEquals(savedOrder, result);
verify(auditService)
.recordOrderCreated(savedOrder);
}@Test
void shouldCreateOrderAndRecordAuditEvent() {
when(repository.save(order))
.thenReturn(savedOrder);
Order result = service.placeOrder(order);
assertEquals(savedOrder, result);
verify(auditService)
.recordOrderCreated(savedOrder);
}PIT's void-method-call mutator can help identify missing verification for certain method calls.
However, interaction verification has an important limitation.
Verifying that a mocked audit service was called doesn't prove that an audit record was durably stored. Similarly, verifying that a Kafka producer was invoked doesn't prove that a broker acknowledged the event.
Use unit tests to protect important interactions and integration tests to establish real persistence, messaging, and transaction guarantees.
The mistake to avoid: Verifying every internal method invocation simply to improve the mutation score. That creates fragile tests coupled to implementation details.
Verify interactions when they represent meaningful business behavior.
5. Bug #4: The arithmetic is wrong, but the test checks the wrong property
Consider a billing calculation using amounts expressed in minor currency units.
public long calculateTotal(
long subtotal,
long deliveryFee) {
return subtotal + deliveryFee;
}public long calculateTotal(
long subtotal,
long deliveryFee) {
return subtotal + deliveryFee;
}A weak test:
@Test
void totalShouldBePositive() {
long total = service.calculateTotal(1000, 100);
assertTrue(total > 0);
}@Test
void totalShouldBePositive() {
long total = service.calculateTotal(1000, 100);
assertTrue(total > 0);
}Now change the addition to subtraction:
return subtotal - deliveryFee;return subtotal - deliveryFee;Both implementations produce positive values.
The original returns 1100.
The mutated implementation returns 900.
The test accepts both.
This example exposes a broader problem: an assertion can be technically correct while being insufficient to establish the intended behavior.
A better test:
@Test
void shouldIncludeDeliveryFeeInTotal() {
assertEquals(
1100,
service.calculateTotal(1000, 100)
);
}@Test
void shouldIncludeDeliveryFeeInTotal() {
assertEquals(
1100,
service.calculateTotal(1000, 100)
);
}You can strengthen the suite further with a business invariant:
@Test
void increasingDeliveryFeeShouldIncreaseTotal() {
long first = service.calculateTotal(1000, 100);
long second = service.calculateTotal(1000, 200);
assertTrue(second > first);
}@Test
void increasingDeliveryFeeShouldIncreaseTotal() {
long first = service.calculateTotal(1000, 100);
long second = service.calculateTotal(1000, 200);
assertTrue(second > first);
}The first test verifies a specific expected result.
The second verifies a relationship that should hold across many inputs.
For more complex billing calculations, consider property-based testing alongside mutation testing.
For monetary calculations, also account for rounding policies, currency differences, overflow, and the appropriate use of BigDecimal or integer minor units.
Mutation testing is useful here, but it won't independently establish that your entire financial model is correct.
6. Bug #5: A method always returns an empty result
Consider a service that returns active users.
public List<User> findActiveUsers(List<User> users) {
return users.stream()
.filter(User::isActive)
.toList();
}public List<User> findActiveUsers(List<User> users) {
return users.stream()
.filter(User::isActive)
.toList();
}The test:
@Test
void shouldReturnUserList() {
List<User> result = service.findActiveUsers(users);
assertNotNull(result);
}@Test
void shouldReturnUserList() {
List<User> result = service.findActiveUsers(users);
assertNotNull(result);
}A mutated implementation could return an empty collection:
return List.of();return List.of();The test remains green.
Why? Because an empty list is not null.
This type of assertion frequently appears in tests for REST APIs, repository methods, DTO transformations, and Java Streams.
A better test defines meaningful input and expected output:
@Test
void shouldReturnOnlyActiveUsers() {
User active = new User("A", true);
User inactive = new User("B", false);
List<User> result = service.findActiveUsers(
List.of(active, inactive)
);
assertEquals(List.of(active), result);
}@Test
void shouldReturnOnlyActiveUsers() {
User active = new User("A", true);
User inactive = new User("B", false);
List<User> result = service.findActiveUsers(
List.of(active, inactive)
);
assertEquals(List.of(active), result);
}The improved test verifies the actual business contract.
It catches:
- Accidentally returning an empty collection.
- Including inactive users.
- Dropping active users.
- Returning unexpected users.
If ordering is part of the contract, verify it. If ordering is intentionally unspecified, avoid asserting an order that the application doesn't promise.
Good assertions protect contracts, not incidental implementation behavior.
7. Bug #6: The Boolean expression looks right until one condition changes
Suppose a customer can withdraw money only when the account is active and sufficient balance is available.
public boolean canWithdraw(
boolean active,
boolean sufficientBalance) {
return active && sufficientBalance;
}public boolean canWithdraw(
boolean active,
boolean sufficientBalance) {
return active && sufficientBalance;
}The existing tests:
assertTrue(service.canWithdraw(true, true));
assertFalse(service.canWithdraw(false, false));assertTrue(service.canWithdraw(true, true));
assertFalse(service.canWithdraw(false, false));What happens if someone accidentally changes && to ||?
Both existing tests still pass.
Account active | Sufficient balance | AND | OR
---------------+--------------------+-------+------
true | true | true | true
true | false | false | true
false | true | false | true
false | false | false | falseAccount active | Sufficient balance | AND | OR
---------------+--------------------+-------+------
true | true | true | true
true | false | false | true
false | true | false | true
false | false | false | falseThe missing tests are the mixed cases.
assertFalse(service.canWithdraw(true, false));
assertFalse(service.canWithdraw(false, true));assertFalse(service.canWithdraw(true, false));
assertFalse(service.canWithdraw(false, true));This is a deliberately constructed source-level mutation. The precise mutations generated by PIT depend on the compiled bytecode and the configured mutator set.
For more complex predicates, don't blindly generate every combination if the number of conditions becomes enormous.
Instead:
- Identify independent business conditions.
- Test each condition's effect on the decision.
- Include high-risk combinations.
- Document contradictory or impossible states.
This becomes especially important for eligibility engines, feature flags, fraud detection, and multi-tenant authorization.
Interview takeaway: Executing every branch isn't equivalent to testing the independent influence of every condition in a compound expression.
8. Bug #7: The loop processes everything except the final record
Consider a batch-processing utility:
public int sum(int[] values) {
int total = 0;
for (int i = 0; i < values.length; i++) {
total += values[i];
}
return total;
}public int sum(int[] values) {
int total = 0;
for (int i = 0; i < values.length; i++) {
total += values[i];
}
return total;
}The existing tests:
assertEquals(0, service.sum(new int[]{}));
assertEquals(3, service.sum(new int[]{1, 2, 0}));assertEquals(0, service.sum(new int[]{}));
assertEquals(3, service.sum(new int[]{1, 2, 0}));Now introduce this source-level bug:
for (int i = 0; i < values.length - 1; i++) {
total += values[i];
}for (int i = 0; i < values.length - 1; i++) {
total += values[i];
}Both tests still pass.
The second test accidentally hides the defect because the final element is zero.
A stronger suite includes:
assertEquals(0, service.sum(new int[]{}));
assertEquals(7, service.sum(new int[]{7}));
assertEquals(12, service.sum(new int[]{3, 4, 5}));
assertEquals(-3, service.sum(new int[]{2, -5}));assertEquals(0, service.sum(new int[]{}));
assertEquals(7, service.sum(new int[]{7}));
assertEquals(12, service.sum(new int[]{3, 4, 5}));
assertEquals(-3, service.sum(new int[]{2, -5}));The single-element test is particularly useful. An incorrect loop boundary immediately becomes visible.
When reviewing batch-processing code, think beyond conventional happy-path inputs.
Consider:
- Empty batches.
- Single-record batches.
- The first and last records.
- Exact chunk-size boundaries.
- Chunk size plus one.
- Inputs whose values could accidentally hide omissions.
The same reasoning applies to pagination, JDBC batches, Kafka record processing, and file imports.
The challenge isn't merely to execute the loop. It is to prove that every intended element contributes to the correct outcome.
9. How to run mutation testing with PIT and JUnit 5
PIT is a mutation-testing tool for the JVM.
Instead of requiring developers to manually create every possible defective implementation, PIT modifies compiled bytecode using predefined mutation operators and runs relevant tests against those changes.
Its workflow is approximately:
Compiled Java classes
|
v
Coverage analysis
|
v
Generate mutations
|
v
Select relevant tests
|
v
Execute mutated code
|
v
HTML / XML mutation reportCompiled Java classes
|
v
Coverage analysis
|
v
Generate mutations
|
v
Select relevant tests
|
v
Execute mutated code
|
v
HTML / XML mutation reportFor a Maven application, configure the PIT Maven plugin and its JUnit 5 integration.
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${pitest.version}</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>${pitest.junit5.version}</version>
</dependency>
</dependencies>
<configuration>
<targetClasses>
<param>com.example.billing.*</param>
</targetClasses>
<targetTests>
<param>com.example.billing.*Test</param>
</targetTests>
<threads>4</threads>
<outputFormats>
<param>HTML</param>
<param>XML</param>
</outputFormats>
</configuration>
</plugin><plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${pitest.version}</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>${pitest.junit5.version}</version>
</dependency>
</dependencies>
<configuration>
<targetClasses>
<param>com.example.billing.*</param>
</targetClasses>
<targetTests>
<param>com.example.billing.*Test</param>
</targetTests>
<threads>4</threads>
<outputFormats>
<param>HTML</param>
<param>XML</param>
</outputFormats>
</configuration>
</plugin>Set the two version properties to compatible releases from the official documentation for your Java and JUnit versions.
Run:
mvn clean test
mvn org.pitest:pitest-maven:mutationCoveragemvn clean test
mvn org.pitest:pitest-maven:mutationCoverageThe mutation report is normally generated under:
target/pit-reports/target/pit-reports/Start with a small package containing business logic rather than immediately applying mutation testing to an entire Spring Boot monolith.
That makes the first report easier to interpret and reduces execution costs.
For configuration details, consult the official PIT Maven quick start.
10. Reading a mutation report without chasing meaningless numbers
A mutation report contains more information than a single percentage.
Mutation outcome | Meaning
-----------------+-----------------------------------------------
Killed | A relevant test detected the changed behavior
Survived | Tests executed but did not detect the mutation
No coverage | No relevant test executed the mutated code
Timed out | Mutated execution exceeded the allowed time
Execution error | The mutation could not be evaluated normallyMutation outcome | Meaning
-----------------+-----------------------------------------------
Killed | A relevant test detected the changed behavior
Survived | Tests executed but did not detect the mutation
No coverage | No relevant test executed the mutated code
Timed out | Mutated execution exceeded the allowed time
Execution error | The mutation could not be evaluated normallyA surviving mutation deserves investigation, but it doesn't automatically prove that the application contains a production bug.
Consider:
return number * 1;return number * 1;A hypothetical mutation could produce:
return number / 1;return number / 1;For integer inputs, these expressions produce identical values.
This illustrates an equivalent mutation: a code change that doesn't alter observable behavior.
No meaningful functional test can distinguish truly equivalent implementations.
Other surviving mutations might affect behavior that is deliberately outside the application's contract.
When investigating a surviving mutation, ask:
- Does this change observable behavior?
- Is that behavior important to the business?
- Can a realistic input distinguish the implementations?
- Can an assertion protect the contract without depending on internal implementation details?
A useful mutation score reflects the ability to detect meaningful defects. It should not become another arbitrary performance target.
11. A reproducible experiment for your Java project
You don't need a large microservices architecture to evaluate mutation testing.
Build a small application with three components:
billing-service
|
+-- DiscountPolicy
+-- InvoiceCalculator
+-- PaymentEligibilitybilling-service
|
+-- DiscountPolicy
+-- InvoiceCalculator
+-- PaymentEligibilityWrite an initial test suite that covers the happy paths and basic branches.
Then follow this experimental procedure:
Phase A: Establish the baseline
Run JUnit, JaCoCo, and PIT. Record line coverage, branch coverage, mutation coverage, and execution time.
Phase B: Investigate the mutations
Inspect surviving mutations. Identify which business rules the existing tests failed to protect.
Phase C: Strengthen the assertions
Add boundary tests, negative cases, meaningful side-effect verification, and exact expected values.
Phase D: Repeat the measurement
Run the same tools against the improved test suite using the same environment.
Measurement | Before improvement | After improvement
--------------------+--------------------+------------------
Line coverage | Measure locally | Measure locally
Branch coverage | Measure locally | Measure locally
Mutation coverage | Measure locally | Measure locally
Surviving mutations | Measure locally | Measure locally
Execution time | Measure locally | Measure locallyMeasurement | Before improvement | After improvement
--------------------+--------------------+------------------
Line coverage | Measure locally | Measure locally
Branch coverage | Measure locally | Measure locally
Mutation coverage | Measure locally | Measure locally
Surviving mutations | Measure locally | Measure locally
Execution time | Measure locally | Measure locallyThe interesting outcome may be that ordinary coverage barely changes while the mutation score improves substantially.
That would demonstrate that the tests became better at detecting behavioral changes without necessarily executing more application code.
The actual outcome must come from the experiment, not an assumed benchmark.
12. Where mutation testing belongs in CI/CD
Mutation testing costs more than ordinary unit testing because it evaluates multiple modified versions of application code.
Running it against every class on every commit can become expensive.
A practical adoption strategy is:
Pipeline stage | Recommended testing
--------------------------+-------------------------------------------------
Local development | Fast unit tests and focused mutation testing
Pull request | Unit tests and selected mutation targets
Nightly build | Broader mutation analysis
Critical business changes | Targeted mutation review and integration testing
Release pipeline | Established quality gates and regression testsPipeline stage | Recommended testing
--------------------------+-------------------------------------------------
Local development | Fast unit tests and focused mutation testing
Pull request | Unit tests and selected mutation targets
Nightly build | Broader mutation analysis
Critical business changes | Targeted mutation review and integration testing
Release pipeline | Established quality gates and regression testsPrioritize mutation testing for code where incorrect results have meaningful consequences:
- Pricing and billing.
- Authorization and eligibility.
- State transitions.
- Retry decisions.
- Inventory calculations.
- Business-rule evaluation.
Avoid treating generated DTOs, framework configuration, and trivial accessors as equally important targets.
Mutation testing should help engineers spend testing effort where failure matters most.
It is not a replacement for integration testing, concurrency testing, contract testing, security testing, or realistic production load testing.
Each technique answers a different question.
13. What experienced Java engineers should ask during code review
Instead of asking only whether a new method is tested, ask whether the tests would fail if the method became incorrect.
Code under review | Question to ask
------------------------------+----------------------------------------
Comparison operator | What happens at the exact boundary?
Authorization rule | Which users must be denied?
Arithmetic calculation | Is the exact result verified?
Method returning a collection | Are contents verified?
External side effect | Is the important interaction protected?
Compound condition | Have mixed Boolean cases been tested?
Batch-processing loop | Are first and final elements included?Code under review | Question to ask
------------------------------+----------------------------------------
Comparison operator | What happens at the exact boundary?
Authorization rule | Which users must be denied?
Arithmetic calculation | Is the exact result verified?
Method returning a collection | Are contents verified?
External side effect | Is the important interaction protected?
Compound condition | Have mixed Boolean cases been tested?
Batch-processing loop | Are first and final elements included?These questions are also useful when preparing for Java backend interviews.
An experienced engineer understands that a test is not valuable simply because it passes.
A test becomes valuable when it fails for the right reason.
Code coverage tells you where your tests have been.
Mutation testing helps you understand what those tests can actually detect.
The difference is easy to overlook on a dashboard, but it matters enormously when the application is responsible for money, access, inventory, and customer data.
Before merging your next Java pull request, choose one important business condition, deliberately change it, and run the tests.
If everything still passes, you have found a worthwhile testing problem.