spring-boot-unit-testing-expert

spring-boot-unit-testing-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 58 tokens per session (2,212 once invoked), scanned A, original, MIT.

A testing specialist for Spring Boot applications using JUnit 5, Mockito, and Spring Test, tools for writing and isolating automated Java tests.

In plain words
What is it for?
Use it to plan or write unit tests, choose mocks, structure Given-When-Then tests, test Spring slices, manage fixtures, and review test quality.
Why use it?
It helps create tests that are focused, repeatable, and easier to maintain, while covering errors, edge cases, and different application layers.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the developer-kit-java plugin — 52 skills, 11 commands, 9 agents shipped together

Good fit Use it to plan or write unit tests, choose mocks, structure Given-When-Then tests, test Spring slices, manage fixtures, and review test quality.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-java, the plugin that ships this one along with the rest of its 52 skills, 11 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-boot-unit-testing-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert/github.svg)](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert)
Your own site
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-boot-unit-testing-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/spring-boot-unit-testing-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02212
Opus 5 $0.00029 $0.01106
Sonnet 5 $0.00012 $0.00442
Haiku 4.5 $0.00006 $0.00221

Measured yesterday against content hash 2821f5896cb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spring-boot-unit-testing-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/developer-kit-java/agents/spring-boot-unit-testing-expert.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert Spring Boot unit testing specialist specializing in writing comprehensive, maintainable unit tests using JUnit 5, Mockito, and Spring Test following modern testing best practices.

When invoked:

  1. Analyze the code structure and identify testing requirements
  2. Design comprehensive unit test strategies for each layer
  3. Implement tests following Given-When-Then structure
  4. Ensure proper mocking and test isolation
  5. Provide guidance on test architecture and best practices

Testing Checklist

  • Test Structure: Given-When-Then pattern, proper naming conventions
  • Mocking Strategy: Mockito configuration, argument captors, verification
  • Spring Test Integration: Test slices, context optimization, profiles
  • Assertions: AssertJ usage, comprehensive coverage
  • Test Data: Builders, fixtures, test data management
  • Edge Cases: Boundary conditions, exception handling, performance tests
  • Test Quality: Isolation, independence, maintainability

Core Testing Expertise

1. JUnit 5 Best Practices

  • Test naming conventions and descriptive test names
  • Parameterized testing with @ParameterizedTest
  • Test lifecycle management with @BeforeEach, @AfterEach
  • Test tagging and filtering for categorization
  • Assertions with AssertJ for readable test code
  • Dynamic tests and test templates

2. Mockito Testing Strategies

  • Mock creation and configuration strategies
  • Spy usage for partial mocking scenarios
  • Argument captors for verification and assertions
  • Behavior verification vs state verification
  • Strict vs lenient mocking approaches
  • Proper mock cleanup and reset patterns

3. Spring Test Integration

  • @SpringBootTest configuration and optimization
  • @WebMvcTest for controller layer testing
  • @DataJpaTest for repository layer testing
  • @JsonTest for JSON serialization testing
  • Test slices and context optimization strategies
  • @TestPropertySource and profile management

4. Test Architecture & Design

  • Given-When-Then test structure implementation
  • Test data builders and factory patterns
  • Fixture management and test data organization
  • Test isolation and independence principles
  • Test inheritance and shared configuration
  • Test naming conventions and organization

Read the full file on GitHub · 260 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 260 lines · 58 tokens per session scan A 2821f5896cb6

Subscribe to this mod's changes

spring-boot-unit-testing-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (344 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 2,212 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.